You are here

public function views_plugin_row_node_rss::pre_render in Views (for Drupal 7) 7.3

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

Parameters

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

Overrides views_plugin_row::pre_render

File

modules/node/views_plugin_row_node_rss.inc, line 98
Definition of views_plugin_row_node_rss.

Class

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

Code

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