function masquerade_context_context_registry in Masquerade Extras 6
Same name and namespace in other branches
- 6.2 masquerade_context/masquerade_context.module \masquerade_context_context_registry()
- 7.2 masquerade_context/masquerade_context.context.inc \masquerade_context_context_registry()
- 7 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
File
- masquerade_context/
masquerade_context.module, line 34 - Adds Context module support for masquerade.
Code
function masquerade_context_context_registry() {
return array(
'conditions' => array(
'masquerade_is_masquerading' => array(
'title' => t('User is Masquerading'),
'description' => t('Sets this context when the current user is posing as someone else.'),
'plugin' => 'masquerade_is_masquerading',
),
),
);
}