You are here

function theme_nice_menus_secondary_menu in Nice Menus 7.3

Same name and namespace in other branches
  1. 7.2 nice_menus.module \theme_nice_menus_secondary_menu()

Theme the secondary menu as a Nice menu.

Return value

mixed An HTML string of Nice secondary menu links.

File

./nice_menus.module, line 691
Module to enable CSS dropdown and flyout menus.

Code

function theme_nice_menus_secondary_menu($variables) {

  // Optional. The direction the menu expands. Default is 'down'.
  $direction = isset($variables['direction']) ? $variables['direction'] : 'down';

  // The number of children levels to display. Use -1 to display all children
  // and use 0 to display no children.
  $depth = isset($variables['depth']) ? $variables['depth'] : -1;
  $menu_name = variable_get('menu_secondary_links_source', 'user-menu');
  $output = theme('nice_menus', array(
    'id' => 0,
    'menu_name' => $menu_name,
    'mlid' => 0,
    'direction' => $direction,
    'depth' => $depth,
  ));
  return $output['content'];
}