Generate an array for rendering the given user.
When viewing a user profile, the $page array contains:
To theme user profiles, copy modules/user/user.tpl.php to your theme directory, and edit it as instructed in that file's comments.
$account: A user object.
$view_mode: View mode, e.g. 'full'.
$langcode: (optional) A language code to use for rendering. Defaults to the global content language of the current request.
An array as expected by drupal_render().
function user_view($account, $view_mode = 'full', $langcode = NULL) {
return entity_view($account, $view_mode, $langcode);
}