function hook_context_plugins in Context 6
Same name and namespace in other branches
- 6.3 context.api.php \hook_context_plugins()
- 7.3 context.api.php \hook_context_plugins()
CTools plugin API hook for Context. Note that a proper entry in hook_ctools_plugin_api() must exist for this hook to be called.
1 function implements hook_context_plugins()
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_plugins in context_layouts/
context_layouts.module - Implementation of hook_context_plugins(). This is a ctools plugins hook.
File
- ./
context.api.php, line 12 - Hooks provided by Context.
Code
function hook_context_plugins() {
$plugins = array();
$plugins['foo_context_condition_bar'] = array(
'handler' => array(
'path' => drupal_get_path('module', 'foo') . '/plugins',
'file' => 'foo_context_condition_bar.inc',
'class' => 'foo_context_condition_bar',
'parent' => 'context_condition',
),
);
$plugins['foo_context_reaction_baz'] = array(
'handler' => array(
'path' => drupal_get_path('module', 'foo') . '/plugins',
'file' => 'foo_context_reaction_baz.inc',
'class' => 'foo_context_reaction_baz',
'parent' => 'context_reaction',
),
);
return $plugins;
}