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)

Importing simple translation module.

  • Property svn:executable set to
  • menu.inc

    old new  
    10491049  $remnant = NULL; 
    10501050  $tree = array(); 
    10511051  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 
    10521059    // We need to determine if we're on the path to root so we can later build 
    10531060    // the correct active trail and breadcrumb. 
    10541061    $item['in_active_trail'] = in_array($item['mlid'], $parents); 
Note: See TracBrowser for help on using the browser.