user_build_content

Versions
6
user_build_content(&$account)
7
user_build_content($account, $build_mode = 'full')

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 function calls user_build_content()

user_view in modules/user/user.pages.inc
Menu callback; Displays a user or user profile page.

Code

modules/user/user.module, line 1637

<?php
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;
}
?>
Login or register to post comments
 
 

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.