You are here

function masquerade_context_context_plugins in Masquerade Extras 6

Same name and namespace in other branches
  1. 6.2 masquerade_context/masquerade_context.module \masquerade_context_context_plugins()
  2. 7.2 masquerade_context/masquerade_context.context.inc \masquerade_context_context_plugins()
  3. 7 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.module, line 14
Adds Context module support for masquerade.

Code

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