Same name and namespace in other branches
  1. 4.6.x modules/user.module \user_view()
  2. 4.7.x modules/user.module \user_view()
  3. 5.x modules/user/user.module \user_view()
  4. 7.x modules/user/user.module \user_view()
  5. 8.9.x core/modules/user/user.module \user_view()

Menu callback; Displays a user or user profile page.

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

File

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

Code

function user_view($account) {
  drupal_set_title(check_plain($account->name));

  // Retrieve all profile fields and attach to $account->content.
  user_build_content($account);

  // To theme user profiles, copy modules/user/user_profile.tpl.php
  // to your theme directory, and edit it as instructed in that file's comments.
  return theme('user_profile', $account);
}