function context_og_set_og_context in Context OG 6.2
Helper function that gets the current OG group context and sets the context module's contexts.
4 calls to context_og_set_og_context()
- context_og_context_page_condition in ./
context_og.module - Implementation of hook_context_page_condition().
- context_og_ctools_render_alter in ./
context_og.module - Implementation of hook_ctools_render_alter().
- context_og_form_alter in ./
context_og.module - Implementation of hook_form_alter().
- context_og_nodeapi in ./
context_og.module - Implementation of hook_nodeapi().
File
- ./
context_og.module, line 97
Code
function context_og_set_og_context() {
$group = og_get_group_context();
if ($group) {
context_set_by_condition('og_group_node', $group->nid);
context_set_by_condition('og_group_type', $group->type);
}
}