summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
Diffstat (limited to 'includes')
-rw-r--r--includes/menu.inc8
1 files changed, 8 insertions, 0 deletions
diff --git a/includes/menu.inc b/includes/menu.inc
index e8d67b287..1e8817ac6 100644
--- a/includes/menu.inc
+++ b/includes/menu.inc
@@ -652,6 +652,14 @@ function _menu_link_translate(&$item) {
_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;
}