diff options
author | Dries Buytaert <dries@buytaert.net> | 2008-02-06 19:41:24 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2008-02-06 19:41:24 +0000 |
commit | 913d538871bd43d040b98a2fe529ca6c8f1a78f3 (patch) | |
tree | 0c8842b050fa90379f31f2bf69dc36b74a279f99 | |
parent | b8a1eab1fb8abb1238f1e5a63757f0d93b2a3cc6 (diff) | |
download | brdo-913d538871bd43d040b98a2fe529ca6c8f1a78f3.tar.gz brdo-913d538871bd43d040b98a2fe529ca6c8f1a78f3.tar.bz2 |
- Patch #218319 by Moshe: added support for dynamic menu items in query strings.
-rw-r--r-- | includes/menu.inc | 8 |
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; } |