You are here

function context_preprocess_page in Context 6.3

Same name and namespace in other branches
  1. 8 context.module \context_preprocess_page()
  2. 6 context.core.inc \context_preprocess_page()
  3. 6.2 context.core.inc \context_preprocess_page()
  4. 7.3 context.core.inc \context_preprocess_page()

Implementation of preprocess_page().

1 string reference to 'context_preprocess_page'
context_theme_registry_alter in ./context.core.inc
Implementation of hook_theme_registry_alter().

File

./context.core.inc, line 322

Code

function context_preprocess_page(&$vars) {
  if ($plugin = context_get_plugin('reaction', 'menu')) {
    $plugin
      ->execute($vars);
  }
  if ($plugin = context_get_plugin('reaction', 'theme')) {
    $plugin
      ->execute($vars);
  }
  if ($context_links = context_links()) {
    $vars['context_links'] = theme('links', $context_links);
  }
  else {
    $vars['context_links'] = '';
  }
}