You are here

function subuser_switch_menu_link_alter in Subuser 8

Same name and namespace in other branches
  1. 7.2 switch/subuser_switch.module \subuser_switch_menu_link_alter()

Implements hook_menu_link_alter().

See also

subuser_switch_translated_menu_link_alter()

File

switch/subuser_switch.module, line 134
Provides primary Drupal hook implementations.

Code

function subuser_switch_menu_link_alter(&$item) {

  // Allow the logout link to be altered.
  if ($item['link_path'] == 'user/logout') {
    $item['options']['alter'] = TRUE;
  }
}