function masquerade_context_context_page_condition in Masquerade Extras 6.2
Same name and namespace in other branches
- 6 masquerade_context/masquerade_context.module \masquerade_context_context_page_condition()
- 7.2 masquerade_context/masquerade_context.context.inc \masquerade_context_context_page_condition()
- 7 masquerade_context/masquerade_context.context.inc \masquerade_context_context_page_condition()
Implements hook_context_page_condition().
Triggers our custom context conditions.
See also
hook_context_page_condition()
File
- masquerade_context/
masquerade_context.module, line 53 - Configures Context plugins for Masquerade.
Code
function masquerade_context_context_page_condition() {
global $user;
if ($plugin = context_get_plugin('condition', 'masquerade_context')) {
$plugin
->execute($user);
}
}