function power_menu_get_menu_tree in Power Menu 7
Same name and namespace in other branches
- 6 power_menu.module \power_menu_get_menu_tree()
@todo Please document this function.
See also
File
- ./
power_menu.module, line 576 - This module provides some additional menu features. The features are not actually new, but are part of other modules. it's though very cumbersome to creating a new menu item, because one has to go to all the different places to configure these…
Code
function power_menu_get_menu_tree() {
$result = db_query("SELECT * FROM {menu_links} WHERE menu_name = :menu_name", array(
':menu_name' => power_menu_get_menu(),
));
$tree = array();
foreach ($result as $row) {
$tree[] = $row;
}
return $tree;
}