function views_plugin_row_user_view::render

Overrides views_plugin_row::render

File

modules/user/views_plugin_row_user_view.inc, line 98

Class

views_plugin_row_user_view
A row plugin which renders a user via user_view.

Code

public function render($row) {
    $account = $this->users[$row->{$this->field_alias}];
    $account->view = $this->view;
    $build = user_view($account, $this->options['view_mode']);
    return drupal_render($build);
}