function custompage_menu_tile in Custom Page 7
Same name and namespace in other branches
- 6 custompage_util.inc \custompage_menu_tile()
Parameters
$menu_name: The system name of the menu as recorded in the {menu_custom} table.
File
- ./
custompage_util.inc, line 140
Code
function custompage_menu_tile($menu_name) {
$out = "<ul class=\"menu-{$menu_name}\">";
$menu = menu_navigation_links($menu_name);
foreach ($menu as $item) {
$item = _custompage_translate_path($item);
$out .= "<li>" . theme_menu_item_link($item) . "</li>";
}
$out .= "</ul>";
$editlink = custompage_edit_link('admin/structure/menu-customize/' . $menu_name);
$tile = custompage_tile_wrap($out, $editlink);
return $tile;
}