$items[] = array('path' => 'user', 'title' => t('user account'), 'callback' => 'drupal_get_form', 'callback arguments' => array('user_login'), 'type' => MENU_CALLBACK); $items[] = array('path' => 'user/autocomplete', 'title' => t('user autocomplete'), 'callback' => 'user_autocomplete', 'access' => $view_access, 'type' => MENU_CALLBACK); // Registration and login pages. $items[] = array('path' => 'user/login', 'title' => t('log in'), 'access' => !$user->uid, 'type' => MENU_DEFAULT_LOCAL_TASK);