function masquerade_context_user_view in Masquerade Extras 7.2
Same name and namespace in other branches
- 7 masquerade_context/masquerade_context.module \masquerade_context_user_view()
Implements hook_user().
See also
hook_user()
File
- masquerade_context/
masquerade_context.module, line 21 - Adds Context module support for masquerade.
Code
function masquerade_context_user_view($account, $view_mode) {
if ('full' == $view_mode && ($plugin = context_get_plugin('condition', 'masquerade_context'))) {
// Evaluates this plugin.
$plugin
->execute($account);
}
}