1 user.module user_build_content($account, $view_mode = 'full', $langcode = NULL)

Builds a structured array representing the profile content.

Parameters

$account: A user object.

$view_mode: (optional) Display mode, e.g. 'full' or 'teaser'. Defaults to 'full'.

$langcode: (optional) A language code to use for rendering. Defaults to the global content language of the current request.

File

core/modules/user/user.module, line 2407
Enables the user registration and login system.

Code

function user_build_content($account, $view_mode = 'full', $langcode = NULL) {
  $account->buildContent($view_mode, $langcode);
}