function og_context_is_init in Organic groups 7.2
Determines if OG context has been already called.
og_context() function should not be called again if it was already executed.
Parameters
bool $called: Determines if og_context() function has already been executed. Defaults to FALSE.
Return value
bool Returns TRUE if function was already executed.
1 call to og_context_is_init()
- og_context in og_context/
og_context.module - Get or set group context using the menu system.
File
- og_context/
og_context.module, line 192 - Get a group from a viewed page.
Code
function og_context_is_init($called = FALSE) {
$return =& drupal_static(__FUNCTION__, FALSE);
if ($called) {
$return = $called;
}
return $return;
}