Hi, this seems to have been fixed in 5.x (http://drupal.org/node/101904) but I'm experiencing the same problem in 6.13. When secondary links are set to the same menu as primary links, you don't get any secondary links on < front >. The following small fix got it working in my case, but I am not very familiar with the menu system and I suspect that non-default secondary menu names might need to be accounted for. Anybody know exactly?
// in menu.inc
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')) {
// fix: If we're on <front>, ensure that we end up with some links
if (drupal_is_front_page()) {
return menu_navigation_links('secondary-links', 0);
}
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);
}
}
Comments