You are here

function masquerade_context_context_page_condition in Masquerade Extras 6

Same name and namespace in other branches
  1. 6.2 masquerade_context/masquerade_context.module \masquerade_context_context_page_condition()
  2. 7.2 masquerade_context/masquerade_context.context.inc \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.module, line 53
Adds Context module support for masquerade.

Code

function masquerade_context_context_page_condition() {
  if ($plugin = context_get_plugin('condition', 'masquerade_is_masquerading')) {
    $plugin
      ->execute();
  }
}