root/drupal/modules/simple_translation/trunk/patches/menu.inc.drupal-6.5.tree-item-hook.patch
| Revision 11, 0.7 kB (checked in by blundeln, 2 years ago) | |
|---|---|
| |
-
menu.inc
old new 1049 1049 $remnant = NULL; 1050 1050 $tree = array(); 1051 1051 while ($item = db_fetch_array($result)) { 1052 1053 // This hook allows modules to modify menu items before rendering. 1054 foreach (module_implements('menu_tree_item_alter') as $name) { 1055 $function = $name .'_menu_tree_item_alter'; 1056 $function($item); 1057 } 1058 1052 1059 // We need to determine if we're on the path to root so we can later build 1053 1060 // the correct active trail and breadcrumb. 1054 1061 $item['in_active_trail'] = in_array($item['mlid'], $parents);
Note: See TracBrowser for help on using the browser.
