function theme_menu_icons in Menu Icons 6
Theme a given menu, with icons
Parameters
$menu_name The menu name:
$hide_children If set to true, children of this menu will not be displayed:
$hide_titles If set to true, titles will be hidden, and only images will display:
Return value
The HTML string of the rendered menu
1 theme call to theme_menu_icons()
- theme_menu_icons_primary_links in ./
menu_icons.module - Theme primary links as menu icons
File
- ./
menu_icons.module, line 184 - Module to associate icons with menu items
Code
function theme_menu_icons($menu_name, $hide_children = FALSE, $hide_titles = FALSE) {
$output = array();
if ($menu_tree = theme('menu_icons_tree', $menu_name, $hide_children, $hide_titles)) {
if ($menu_tree['content']) {
$output['content'] = '<ul class="menu_icons_menu">' . $menu_tree['content'] . '</ul>' . "\n";
$output['subject'] = $menu_tree['subject'];
}
}
return $output;
}