You are here

function og_get_group_context in Organic groups 6

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.2 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.

10 calls to og_get_group_context()
og_block_details in ./og.module
og_exit in ./og.module
Set session variable thats used to determine group context when node is in multiple groups.
og_form_alter in ./og.module
og_nodeapi in ./og.module
Implementation of hook_nodeapi().
og_node_delete_nongroup_form in ./og.module

... See full list

File

./og.module, line 548

Code

function og_get_group_context() {
  return og_set_group_context();
}