function context_reactions in Context 6.2
Same name and namespace in other branches
- 6.3 context.module \context_reactions()
- 6 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_process in context_ui/
context_ui.admin.inc - Produces a context object from submitted form values.
- context_ui_preprocess_context_ui_list_contexts in context_ui/
context_ui.admin.inc - Preprocess the contexts list theme
- theme_context_ui_form in context_ui/
context_ui.admin.inc - Theme function for context_ui_form()
File
- ./
context.module, line 580
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;
}