function theme_menu_icons_tree in Menu Icons 6
Theme a given menu tree, 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 tree
1 theme call to theme_menu_icons_tree()
- theme_menu_icons in ./
menu_icons.module - Theme a given menu, with icons
File
- ./
menu_icons.module, line 205 - Module to associate icons with menu items
Code
function theme_menu_icons_tree($menu_name, $hide_children = FALSE, $hide_titles = FALSE) {
$menu = menu_tree_all_data($menu_name);
$result = db_result(db_query("SELECT title FROM {menu_custom} WHERE menu_name = '%s'", $menu_name));
$title = check_plain($result);
$output['content'] = '';
$output['subject'] = $title;
if ($menu) {
$output['content'] .= theme('menu_icons_build', $menu, $hide_children, $hide_titles);
}
return $output;
}