You are here

function devel_menu_link_alter in Devel 7

Same name and namespace in other branches
  1. 6 devel.module \devel_menu_link_alter()

Implements hook_menu_link_alter().

Flag this link as needing alter at display time. This is more robust than setting alter in hook_menu().

See also

devel_translated_menu_link_alter()

File

./devel.module, line 381
This module holds functions useful for Drupal development.

Code

function devel_menu_link_alter(&$item) {
  if (in_array($item['link_path'], devel_menu_need_destination()) || array_key_exists($item['link_path'], devel_menu_need_token_protection()) || $item['link_path'] == 'devel/menu/item') {
    $item['options']['alter'] = TRUE;
  }
}