function hook_context_registry in Context 6.3
Same name and namespace in other branches
- 6 context.api.php \hook_context_registry()
- 7.3 context.api.php \hook_context_registry()
Registry hook for conditions & reactions.
Each entry associates a condition or reaction with the CTools plugin to be used as its plugin class.
1 function implements hook_context_registry()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- context_context_registry in ./
context.module - Implementation of hook_context_registry().
1 invocation of hook_context_registry()
- _context_registry in ./
context.module - Retrieves & caches the context registry.
File
- ./
context.api.php, line 39 - Hooks provided by Context.
Code
function hook_context_registry() {
return array(
'conditions' => array(
'bar' => array(
'title' => t('Name of condition "bar"'),
'plugin' => 'foo_context_condition_bar',
),
),
'reactions' => array(
'baz' => array(
'title' => t('Name of reaction "baz"'),
'plugin' => 'foo_context_reaction_baz',
),
),
);
}