Same name and namespace in other branches
  1. 5.x includes/menu.inc \menu_secondary_links()
  2. 6.x includes/menu.inc \menu_secondary_links()

Returns an array containing the secondary links. Secondary links can be either a second level of the Primary links menu or generated from their own menu.

Related topics

2 calls to menu_secondary_links()
chameleon_page in themes/chameleon/chameleon.theme
phptemplate_page in themes/engines/phptemplate/phptemplate.engine
Prepare the values passed to the theme_page function to be passed into a pluggable template engine.

File

includes/menu.inc, line 870
API for the Drupal menu system.

Code

function menu_secondary_links() {
  $msm = variable_get('menu_secondary_menu', 0);
  if ($msm == 0) {
    return NULL;
  }
  if ($msm == variable_get('menu_primary_menu', 0)) {
    return menu_primary_links(2, $msm);
  }
  return menu_primary_links(1, $msm);
}