You are here

function theme_nice_menus_secondary_links in Nice Menus 6.2

Theme secondary links as nice menus.

Parameters

string $direction: Optional. The direction the menu expands. Default is 'down'.

int $depth: The number of children levels to display. Use -1 to display all children and use 0 to display no children.

array $menu: Optional. A custom menu array to use for theming -- it should have the same structure as that returned by menu_tree_all_data(). Default is the standard menu tree.

Return value

string An HTML string of nice menu secondary links.

File

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

Code

function theme_nice_menus_secondary_links($direction = 'down', $depth = -1, $menu = NULL) {
  $menu_name = variable_get('menu_secondary_links_source', 'secondary-links');
  $output = theme('nice_menus', 0, $menu_name, 0, $direction, $depth, $menu);
  return $output['content'];
}