function user_build_content in Drupal 6
Same name and namespace in other branches
- 7 modules/user/user.module \user_build_content()
Builds a structured array representing the profile content.
Parameters
$account: A user object.
Return value
A structured array containing the individual elements of the profile.
1 call to user_build_content()
- user_view in modules/
user/ user.pages.inc - Menu callback; Displays a user or user profile page.
File
- modules/
user/ user.module, line 1710 - Enables the user registration and login system.
Code
function user_build_content(&$account) {
$edit = NULL;
user_module_invoke('view', $edit, $account);
// Allow modules to modify the fully-built profile.
drupal_alter('profile', $account);
return $account->content;
}