You are here

function theme_nice_menus_secondary_menu in Nice Menus 7.2

Same name and namespace in other branches
  1. 7.3 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 766
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 = $variables['direction'];

  // The number of children levels to display. Use -1 to display all children
  // and use 0 to display no children.
  $depth = $variables['depth'];
  $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'];
}