You are here

function user_translated_menu_link_alter in Drupal 7

Implements hook_translated_menu_link_alter().

File

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