You are here

function menu_secondary_links in Drupal 6

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

Return an array of links to be rendered as the Secondary links.

Related topics

2 calls to menu_secondary_links()
chameleon_page in themes/chameleon/chameleon.theme
template_preprocess_page in includes/theme.inc
Process variables for page.tpl.php

File

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

Code

function menu_secondary_links() {

  // 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', 'secondary-links') == variable_get('menu_primary_links_source', 'primary-links')) {
    return menu_navigation_links(variable_get('menu_primary_links_source', 'primary-links'), 1);
  }
  else {
    return menu_navigation_links(variable_get('menu_secondary_links_source', 'secondary-links'), 0);
  }
}