function theme_nice_menu_primary_links in Nice Menus 5
Same name and namespace in other branches
- 6 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_get_menu(). Default is the standard menu tree.
Return value
An HTML string of nice menu primary links.
File
- ./
nice_menus.module, line 277
Code
function theme_nice_menu_primary_links($direction = 'down', $menu = NULL) {
$pid = variable_get('menu_primary_menu', 0);
$output = theme('nice_menu', 'primary', $pid, $direction, $menu);
return $output['content'];
}