1 views_plugin_row_user_view.inc views_plugin_row_user_view::pre_render($values)

Allow the style to do stuff before each row is rendered.

Parameters

$result: The full array of results from the query.

Overrides views_plugin_row::pre_render

File

core/modules/user/views/views_plugin_row_user_view.inc, line 67
Contains the user view row plugin.

Class

views_plugin_row_user_view
A row plugin which renders a user account via user_view.

Code

function pre_render($values) {
  $uids = array();
  foreach ($values as $row) {
    $uids[] = $row->{$this->field_alias};
  }
  $this->users = user_load_multiple($uids);
}