menu_secondary_links

  1. drupal
    1. 4.7
    2. 5
    3. 6 menu.inc
Versions
4.7 – 6 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 functions call 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.

Code

includes/menu.inc, line 871

<?php
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);
}
?>