You are here

function masquerade_context_context_plugins in Masquerade Extras 7

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

Implements hook_context_plugins().

Adds a masquerading condition to the context module.

See also

hook_context_plugins()

File

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

Code

function masquerade_context_context_plugins() {
  return array(
    'masquerade_context' => array(
      'handler' => array(
        'path' => drupal_get_path('module', 'masquerade_context') . '/plugins/condition',
        'file' => 'masquerade_context.inc',
        'class' => 'masquerade_context_condition',
        'parent' => 'context_condition',
      ),
    ),
  );
}