function user_translated_menu_link_alter

Implements hook_translated_menu_link_alter().

File

modules/user/user.module, line 1944

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;
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.