You are here

function user_page in Drupal 6

Same name and namespace in other branches
  1. 7 modules/user/user.pages.inc \user_page()

Access callback for path /user.

Displays user profile if user is logged in, or login form for anonymous users.

1 string reference to 'user_page'
user_menu in modules/user/user.module
Implementation of hook_menu().

File

modules/user/user.pages.inc, line 372
User page callback file for the user module.

Code

function user_page() {
  global $user;
  if ($user->uid) {
    menu_set_active_item('user/' . $user->uid);
    return menu_execute_active_handler();
  }
  else {
    return drupal_get_form('user_login');
  }
}