1.20.x user.module user_translated_menu_link_alter(&$link)

Implements hook_translated_menu_link_alter().

File

modules/user/user.module, line 1632
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;
  }
}