1 views_plugin_row_node_view.inc views_plugin_row_node_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/node/views/views_plugin_row_node_view.inc, line 100
Contains the node view row style plugin.

Class

views_plugin_row_node_view
Plugin which performs a node_view on the resulting object.

Code

function pre_render($values) {
  $nids = array();
  foreach ($values as $row) {
    $nids[] = $row->{$this->field_alias};
  }
  $this->nodes = node_load_multiple($nids);
}