function masquerade_context_context_page_condition in Masquerade Extras 7.2
Same name and namespace in other branches
- 6.2 masquerade_context/masquerade_context.module \masquerade_context_context_page_condition()
- 6 masquerade_context/masquerade_context.module \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
File
- masquerade_context/
masquerade_context.context.inc, line 53 - Configures Context plugins for Masquerade.
Code
function masquerade_context_context_page_condition() {
global $user;
if ($plugin = context_get_plugin('condition', 'masquerade_context')) {
// Evalutes this context plugin.
$plugin
->execute($user);
}
}