You are here

function spaces_preprocess_page in Spaces 6

Same name and namespace in other branches
  1. 6.3 spaces.module \spaces_preprocess_page()
  2. 6.2 spaces.module \spaces_preprocess_page()
  3. 7.3 spaces.module \spaces_preprocess_page()
  4. 7 spaces.module \spaces_preprocess_page()
1 string reference to 'spaces_preprocess_page'
spaces_theme_registry_alter in ./spaces.module
Implementation of hook_theme_registry_alter().

File

./spaces.module, line 1786

Code

function spaces_preprocess_page(&$vars) {
  if (variable_get('menu_primary_links_source', 'primary-links') == 'spaces') {
    $vars['primary_links'] = spaces_features_menu();
  }
  if (variable_get('menu_secondary_links_source', 'secondary-links') == 'spaces') {
    $vars['secondary_links'] = spaces_features_menu();
  }
}