function user_view_multiple

Constructs a drupal_render() style array from an array of loaded users.

Parameters

$accounts: An array of user accounts as returned by user_load_multiple().

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

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

Return value

An array in the format expected by drupal_render().

File

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

Code

function user_view_multiple($accounts, $view_mode = 'full', $langcode = NULL) {
  return entity_view($accounts, $view_mode, $langcode);
}