You are here

function masquerade_context_context_page_condition in Masquerade Extras 7.2

Same name and namespace in other branches
  1. 6.2 masquerade_context/masquerade_context.module \masquerade_context_context_page_condition()
  2. 6 masquerade_context/masquerade_context.module \masquerade_context_context_page_condition()
  3. 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.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);
  }
}