og_get_group_context

Versions
5 – 6
og_get_group_context()

API function for getting the group context (if any) for the current request. Used for things like setting current theme and breadcrumbs. This context is set during og_theme()

Return value

$node object

▾ 11 functions call og_get_group_context()

calendar_og_groups in contributions/calendar/calendar.module
Helper function to figure out a group gid to use in blocks.
og_block_details in contributions/og/og.module
og_block_notifications in contributions/og/og.module
og_block_subscribers in contributions/og/og.module
og_form_alter in contributions/og/og.module
og_menu in contributions/og/og.module
og_nodeapi in contributions/og/og.module
Implementation of hook_nodeapi().
og_node_delete_nongroup_form in contributions/og/og.module
og_set_locale in contributions/og/og.module
Like locale_initialize(), but includes a check for group language and sets accordingly. Priority goes: user => group => site default
og_views_query_substitutions in contributions/og/og_views.inc
Allow replacement of current group so we can cache these queries.
panels_group_from_node_context in contributions/og/includes/grouprelationships.inc
Return a new context based on an existing context

Code

contributions/og/og.module, line 246

<?php
function og_get_group_context() {
  return og_set_group_context();
}
?>

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.