1 views_plugin_row_node_rss.inc views_plugin_row_node_rss::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_rss.inc, line 77
Contains the node RSS row style plugin.

Class

views_plugin_row_node_rss
Plugin which performs a node_view on the resulting object and formats it as an RSS item.

Code

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