You are here

function masquerade_context_context_registry in Masquerade Extras 7

Same name and namespace in other branches
  1. 6.2 masquerade_context/masquerade_context.module \masquerade_context_context_registry()
  2. 6 masquerade_context/masquerade_context.module \masquerade_context_context_registry()
  3. 7.2 masquerade_context/masquerade_context.context.inc \masquerade_context_context_registry()

Implements hook_context_registry().

Tells the Context module to look for our custom plugins.

See also

hook_context_registry()

File

masquerade_context/masquerade_context.context.inc, line 34
Configures Context plugins for Masquerade.

Code

function masquerade_context_context_registry() {
  return array(
    'conditions' => array(
      'masquerade_context' => array(
        'title' => t('Masquerade'),
        'description' => t('Sets this context when a user is posing as someone else.'),
        'plugin' => 'masquerade_context',
      ),
    ),
  );
}