You are here

function theme_nice_menus_primary_links in Nice Menus 6.2

Theme primary 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 primary links.

File

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

Code

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