function user_page

cis7 user.pages.inc user_page()
cle7 user.pages.inc user_page()
elmsmedia7 user.pages.inc user_page()
icor7 user.pages.inc user_page()
meedjum_blog7 user.pages.inc user_page()
mooc7 user.pages.inc user_page()

Page callback: Displays the user page.

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

Return value

A render array for either a user profile or a login form.

See also

user_view_page()

user_login()

11 string references to 'user_page'
context_form_user_profile_form_alter in sites/all/modules/ulmus/context/context.core.inc
Implementation of hook_form_alter() for user_profile_form.
context_form_user_register_form_alter in sites/all/modules/ulmus/context/context.core.inc
Implementation of hook_form_alter() for user_register_form.
context_user_view in sites/all/modules/ulmus/context/context.core.inc
Implementation of hook_user().
context_views_pre_view in sites/all/modules/ulmus/context/context.core.inc
Implementation of hook_views_pre_view().
drupal-6.bare.database.php in modules/simpletest/tests/upgrade/drupal-6.bare.database.php
Bare installation of Drupal 6.17, for test purposes.

... See full list

File

modules/user/user.pages.inc, line 553
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(NULL, FALSE);
  }
  else {
    return drupal_get_form('user_login');
  }
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.