user_view

Definition

user_view($account)
modules/user/user.pages.inc, line 148

Description

Menu callback; Displays a user or user profile page.

Code

<?php
function user_view($account) {
  drupal_set_title($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);
}
?>
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.