You are here

function user_view_page in Drupal 7

Page callback wrapper for user_view().

1 string reference to 'user_view_page'
user_menu in modules/user/user.module
Implements hook_menu().

File

modules/user/user.module, line 2638
Enables the user registration and login system.

Code

function user_view_page($account) {

  // An administrator may try to view a non-existent account,
  // so we give them a 404 (versus a 403 for non-admins).
  return is_object($account) ? user_view($account) : MENU_NOT_FOUND;
}