function hook_context_registry_alter in Context 6.3
Same name and namespace in other branches
- 6 context.api.php \hook_context_registry_alter()
- 7.3 context.api.php \hook_context_registry_alter()
Alter the registry.
Allows modules to alter the registry. Default plugins can be replaced by custom ones declared in hook_context_plugins().
Parameters
$registry: The registry, passed by reference.
1 function implements hook_context_registry_alter()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- context_layouts_context_registry_alter in context_layouts/
context_layouts.module - Implementation of hook_context_registry_alter().
1 invocation of hook_context_registry_alter()
- _context_registry in ./
context.module - Retrieves & caches the context registry.
File
- ./
context.api.php, line 65 - Hooks provided by Context.
Code
function hook_context_registry_alter(&$registry) {
if (isset($registry['reactions']['baz'])) {
$registry['reactions']['baz']['plugin'] = 'custom_context_reaction_baz';
}
}