function context_reactions in Context 6
Same name and namespace in other branches
- 6.3 context.module \context_reactions()
- 6.2 context.module \context_reactions()
- 7.3 context.module \context_reactions()
Invokes hook_context_reactions() to provide an array of reactions that may be associated with a context.
5 calls to context_reactions()
- context_active_values in ./
context.module - Builds an array of values based on the current active contexts and group by conditions/reactions.
- context_ui_form in context_ui/
context_ui.admin.inc - Generates the omnibus context definition editing form. Note: submission and validation handlers are in context_ui_admin.inc
- context_ui_form in context_ui/
export_ui/ context_export_ui.class.php - Generates the omnibus context definition editing form.
- context_ui_form_process in context_ui/
context_ui.admin.inc - Produces a context object from submitted form values.
- theme_context_ui_form in context_ui/
context_ui.admin.inc - Theme function for context_ui_form()
File
- ./
context.module, line 577
Code
function context_reactions($reset = FALSE) {
static $reactions;
if (!isset($reactions) || $reset) {
$cache = context_cache_get('reactions');
if ($cache && !$reset) {
$reactions = $cache;
}
else {
$reactions = module_invoke_all('context_reactions');
context_cache_set('reactions', $reactions);
}
}
return $reactions;
}