function og_menu_get_context in Organic Groups Menu (OG Menu) 7.2
Same name and namespace in other branches
- 7.3 og_menu.module \og_menu_get_context()
Returns the current group context's nid.
1 call to og_menu_get_context()
- og_menu_block_view in ./
og_menu.module - Implementation of hook_block_view()
File
- ./
og_menu.module, line 282 - Integrates Menu with Organic Groups. Lots of menu forms duplication in OG context.
Code
function og_menu_get_context() {
$context = og_context();
return isset($context->gid) ? $context->gid : 0;
}