function user_page

cis7 user_page()
cle7 user_page()
elmsmedia7 user_page()
icor7 user_page()
meedjum_blog7 user_page()
mooc7 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



11 string references to 'user_page'
context_form_user_profile_form_alter in sites/all/modules/ulmus/context/
Implementation of hook_form_alter() for user_profile_form.
context_form_user_register_form_alter in sites/all/modules/ulmus/context/
Implementation of hook_form_alter() for user_register_form.
context_user_view in sites/all/modules/ulmus/context/
Implementation of hook_user().
context_views_pre_view in sites/all/modules/ulmus/context/
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


modules/user/, line 553
User page callback file for the user module.


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 message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/ in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/
The website encountered an unexpected error. Please try again later.