function context_og_context_page_reaction in Context OG 7
Same name and namespace in other branches
- 6.2 context_og.module \context_og_context_page_reaction()
- 7.2 context_og.module \context_og_context_page_reaction()
File
- ./
context_og.module, line 86
Code
function context_og_context_page_reaction() {
$group = og_context();
// Only execute the group node context condition if there is a group node
// in context.
if ($group) {
$plugin = context_get_plugin('condition', 'context_og_condition_group_node');
if ($plugin) {
$plugin
->execute($group);
}
}
// Execute the group type context condition all the time because we want
// to use that condition to be able to check for "no group context."
$plugin = context_get_plugin('condition', 'context_og_condition_group_type');
if ($plugin) {
$plugin
->execute($group);
}
}