You are here

function hook_context_registry in Context 6

Same name and namespace in other branches
  1. 6.3 context.api.php \hook_context_registry()
  2. 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.

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',
      ),
    ),
  );
}