You are here

function og_get_group_context in Organic groups 6.2

Same name and namespace in other branches
  1. 5.8 og.module \og_get_group_context()
  2. 5 og.module \og_get_group_context()
  3. 5.2 og.module \og_get_group_context()
  4. 5.3 og.module \og_get_group_context()
  5. 5.7 og.module \og_get_group_context()
  6. 6 og.module \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_determine_context().

Return value

The group node object if exists.

14 calls to og_get_group_context()
og_block_details in ./og.module
Content for Group Details block.
og_details_links in ./og.module
Create group-contextual links, such as the group details block.
og_exit in ./og.module
Implementation of hook_exit().
og_form_alter in ./og.module
Implementation of hook_form_alter().
og_init in ./og.module
Implementation of hook_init().

... See full list

File

./og.module, line 775
Code for the Organic Groups module.

Code

function og_get_group_context() {
  return og_set_group_context();
}