function hook_translated_menu_link_alter


Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/
cis7 system.api.php hook_translated_menu_link_alter(&$item, $map)
cle7 system.api.php hook_translated_menu_link_alter(&$item, $map)
elmsmedia7 system.api.php hook_translated_menu_link_alter(&$item, $map)
icor7 system.api.php hook_translated_menu_link_alter(&$item, $map)
meedjum_blog7 system.api.php hook_translated_menu_link_alter(&$item, $map)
mooc7 system.api.php hook_translated_menu_link_alter(&$item, $map)

Alter a menu link after it has been translated and before it is rendered.

This hook is invoked from _menu_link_translate() after a menu link has been translated; i.e., after dynamic path argument placeholders (%) have been replaced with actual values, the user access to the link's target page has been checked, and the link has been localized. It is only invoked if $item['options']['alter'] has been set to a non-empty value (e.g., TRUE). This flag should be set using hook_menu_link_alter().

Implementations of this hook are able to alter any property of the menu link. For example, this hook may be used to add a page-specific query string to all menu links, or hide a certain link by setting:

  'hidden' => 1,


$item: Associative array defining a menu link after _menu_link_translate()

$map: Associative array containing the menu $map (path parts and/or objects).

See also


Related topics

5 functions implement hook_translated_menu_link_alter()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

admin_menu_translated_menu_link_alter in sites/all/modules/ulmus/admin_menu/admin_menu.module
Implements hook_translated_menu_link_alter().
bakery_translated_menu_link_alter in sites/all/modules/ulmus/bakery/bakery.module
Implements hook_translated_menu_link_alter().
devel_translated_menu_link_alter in sites/all/modules/ulmus/devel/devel.module
An implementation of hook_translated_menu_item_alter(). Append dynamic querystring 'destination' to several of our own menu items.
masquerade_translated_menu_link_alter in sites/all/modules/ulmus/masquerade/masquerade.module
Implements hook_translated_menu_link_alter().
user_translated_menu_link_alter in modules/user/user.module
Implements hook_translated_menu_link_alter().
2 invocations of hook_translated_menu_link_alter()
_menu_link_translate in includes/
Provides menu link access control, translation, and argument handling.
_token_menu_link_translate in sites/all/modules/ulmus/token/token.module


modules/system/system.api.php, line 1346
Hooks provided by Drupal core and the System module.


function hook_translated_menu_link_alter(&$item, $map) {
  if ($item['href'] == 'devel/cache/clear') {
    $item['localized_options']['query'] = drupal_get_destination();



Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/ in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/
The website encountered an unexpected error. Please try again later.