user_build_content

6 user.module user_build_content(&$account)
7 user.module user_build_content($account, $view_mode = 'full', $langcode = NULL)
8 user.module user_build_content($account, $view_mode = 'full', $langcode = NULL)

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()

File

modules/user/user.module, line 1670
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;
}
Login or register to post comments