Commit 99534 by goba

#218319 by moshe weitzman: translated menu link altering was not possible (critical regression)

--- includes/menu.inc   2008/02/04 12:07:23     1.255
+++ includes/menu.inc   2008/02/06 12:11:22     1.255.2.1
@@ -652,6 +652,14 @@
 
     _menu_item_localize($item, $map, TRUE);
   }
+  
+  // Allow other customizations - e.g. adding a page-specific query string to the
+  // options array. For performance reasons we only invoke this hook if the link
+  // has the 'alter' flag set in the options array.
+  if (!empty($item['options']['alter'])) {
+    drupal_alter('translated_menu_link', $item, $map);
+  }
+  
   return $map;
 }
 
No votes yet