<?php/** * @file * Contains the node view row style plugin. *//** * Plugin which performs a node_view on the resulting object. * * Most of the code on this object is in the theme function. * * @ingroup views_row_plugins */class views_plugin_row_test_view extends views_plugin_row { // Basic properties that let the row style follow relationships. var $base_table = 'node'; var $base_field = 'nid'; // Stores the nodes loaded with pre_render. var $nodes = array(); function pre_render($values) { $nids = array(); foreach ($values as $row) { $nids[] = $row->{$this->field_alias}; } $this->nodes = node_load_multiple($nids); } function render($row) { $node = $this->nodes[$row->{$this->field_alias}]; $node->view = $this->view; $build = node_view($node, $this->options['view_mode']); return drupal_render($build); }}