'. t('By design the login link will be at the top of the menu.'). '

'; break; case 'admin/help/loginmenu': $output .= t('Generates a login link in the navigation menu for anon only.'); break; } return $output; } /* Implements hook_menu * Returns a menu hook with access set to NOT(userid) * Since anonymous has uid 0, this will be true for anon */ function loginmenu_menu($may_cache) { global $user; $destination = drupal_get_destination(); $items = array(); if($may_cache){ $items[] = array( 'path' => 'login', 'title' => t('log in'), 'access' => !($user->uid), 'callback' => 'drupal_goto', 'callback arguments' => array('user/login', $destination), 'weight' => -10, 'type' => MENU_DYNAMIC_ITEM | MENU_NORMAL_ITEM, ); } return $items; }