function hook_context_plugins

cis7 context.api.php hook_context_plugins()
cle7 context.api.php hook_context_plugins()
elmsmedia7 context.api.php hook_context_plugins()
icor7 context.api.php hook_context_plugins()
meedjum_blog7 context.api.php hook_context_plugins()
mooc7 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.

7 functions implement 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_condition_theme_context_plugins in sites/all/modules/ulmus/context_condition_theme/context_condition_theme.module
Implements hook_context_plugins().
context_context_plugins in sites/all/modules/ulmus/context/context.module
Implementation of hook_context_plugins().
context_layouts_context_plugins in sites/all/modules/ulmus/context/context_layouts/context_layouts.module
Implementation of hook_context_plugins(). This is a ctools plugins hook.
context_var_context_plugins in sites/all/modules/elmsln_contrib/context_var/context_var.module
Implements hook_context_plugins().
date_context_context_plugins in sites/all/modules/ulmus/date/date_context/date_context.module
Implements hook_context_plugins()

... See full list

File

sites/all/modules/ulmus/context/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;
}