function menu_block_split_menu_name in Menu Block Split 6.2
Same name and namespace in other branches
- 6 menu_block_split.module \menu_block_split_menu_name()
- 7.2 menu_block_split.module \menu_block_split_menu_name()
Returns the menu_name to which the current menu-item belongs.
1 call to menu_block_split_menu_name()
- menu_block_split_init in ./
menu_block_split.module - Implementation of hook_init().
File
- ./
menu_block_split.module, line 34 - Allow a menu to be split over two blocks Developed by Robert Garrigos <robert@garrigos.cat> Modified for Drupal 6.x by Frank Meyerer <meyerer@digi-info.de> http://www.digi-info.de currently maintained by Bob Hutchinson…
Code
function menu_block_split_menu_name() {
$item = menu_get_item();
$result = db_query("SELECT menu_name FROM {menu_links} ml where ml.link_path = '%s'", $item['href']);
while ($item = db_fetch_array($result)) {
if (!in_array($item['menu_name'], array(
'navigation',
'admin_menu',
))) {
return $item['menu_name'];
}
}
}