You are here

function template_preprocess_pane_navigation in Panels Everywhere 7

Same name and namespace in other branches
  1. 6 theme/theme.inc \template_preprocess_pane_navigation()

Override Pane Navigation in Panels.

File

theme/theme.inc, line 99
Contains preprocess functions for Panels Everywhere themes.

Code

function template_preprocess_pane_navigation(&$vars) {

  // Adhere to the theme's settings for the navigation bar.
  $vars['main_menu'] = theme_get_setting('toggle_main_menu') ? menu_main_menu() : array();
  $vars['secondary_menu'] = theme_get_setting('toggle_secondary_menu') ? menu_secondary_menu() : array();
}