function menu_secondary_menu
Returns an array of links to be rendered as the Secondary links.
Related topics
1 call to menu_secondary_menu()
- template_preprocess_page in includes/
theme.inc - Preprocess variables for page.tpl.php
File
-
includes/
menu.inc, line 1835
Code
function menu_secondary_menu() {
// If the secondary menu source is set as the primary menu, we display the
// second level of the primary menu.
if (variable_get('menu_secondary_links_source', 'user-menu') == variable_get('menu_main_links_source', 'main-menu')) {
return menu_navigation_links(variable_get('menu_main_links_source', 'main-menu'), 1);
}
else {
return menu_navigation_links(variable_get('menu_secondary_links_source', 'user-menu'), 0);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.