You are here

function hook_og_vocab_is_admin_context in OG Vocabulary 7

Allow modules to return TRUE if we are insiede an OG vocab admin context.

Return value

If countext found array keyed by the group-type and the group ID.

1 invocation of hook_og_vocab_is_admin_context()
og_vocab_is_group_admin_context in ./og_vocab.module
Check if a given page is inside a group admin context.

File

./og_vocab.api.php, line 22
Hooks provided by the Organic groups vocabulary module.

Code

function hook_og_vocab_is_admin_context() {
  $item = menu_get_item();
  if (strpos($item['path'], 'foo/admin') === 0) {
    return array(
      'group_type' => 'node',
      'gid' => 1,
    );
  }
}