You are here

function hook_context_page_condition in Context 7.3

Execute Context page conditions

Allows modules to hook into Context's hook_page_build to execute their conditions at an appropriate time before the firing of reactions.

1 function implements hook_context_page_condition()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

context_context_page_condition in ./context.core.inc
Implementation of hook_context_page_condition().
1 invocation of hook_context_page_condition()
context_page_build in ./context.core.inc
Implements hook_page_build().

File

./context.api.php, line 62
Hooks provided by Context.

Code

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