You are here

function context_context_page_condition in Context 6.3

Same name and namespace in other branches
  1. 6.2 context.core.inc \context_context_page_condition()
  2. 7.3 context.core.inc \context_context_page_condition()

Implementation of hook_context_page_condition().

File

./context.core.inc, line 292

Code

function context_context_page_condition() {
  if ($plugin = context_get_plugin('condition', 'menu')) {
    $plugin
      ->execute();
  }
  if ($plugin = context_get_plugin('condition', 'sitewide')) {
    $plugin
      ->execute(1);
  }
  if ($plugin = context_get_plugin('condition', 'context')) {
    $plugin
      ->execute();
  }
}