You are here

function theme_nice_menu_primary_links in Nice Menus 6

Same name and namespace in other branches
  1. 5 nice_menus.module \theme_nice_menu_primary_links()

Theme primary links as nice menus

Parameters

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

$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

An HTML string of nice menu primary links.

File

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

Code

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