function user_view_page

Page callback wrapper for user_view().

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

File

drupal/core/modules/user/user.module, line 1931
Enables the user registration and login system.

Code

function user_view_page($account) {
  if (is_object($account)) {
    return user_view($account);
  }

  // An administrator may try to view a non-existent account,
  // so we give them a 404 (versus a 403 for non-admins).
  throw new NotFoundHttpException();
}