1 user.module user_translated_menu_link_alter(&$link)

Implements hook_translated_menu_link_alter().

File

core/modules/user/user.module, line 1637
Enables the user registration and login system.

Code

function user_translated_menu_link_alter(&$link) {
  // Hide the "User account" link for anonymous users.
  if ($link['link_path'] == 'user' && $link['module'] == 'system' && !$GLOBALS['user']->uid) {
    $link['hidden'] = 1;
  }
}