You are here

function masquerade_context_user in Masquerade Extras 6.2

Implements hook_user().

Evaluates our context plugin when a user account is viewed.

See also

hook_user()

File

masquerade_context/masquerade_context.module, line 68
Configures Context plugins for Masquerade.

Code

function masquerade_context_user($op, &$edit, &$account, $category = NULL) {
  if ('view' == $op && ($plugin = context_get_plugin('condition', 'masquerade_context'))) {
    $plugin
      ->execute($account);
  }
}