You are here

views_parity_row_views_plugin_row_node_view.inc in Views Parity Row 7

Contains the Views Parity Row row style plugin for node.

File

views/views_parity_row_views_plugin_row_node_view.inc
View source
<?php

/**
 * @file
 * Contains the Views Parity Row row style plugin for node.
 */

/**
 * Plugin which performs a node_view on the resulting object.
 *
 * @ingroup views_row_plugins
 */
class views_parity_row_views_plugin_row_node_view extends views_plugin_row_node_view {
  use views_parity_row_base;
  function render($row) {
    if (isset($this->nodes[$row->{$this->field_alias}])) {
      $node = $this->nodes[$row->{$this->field_alias}];
      $node->view = $this->view;
      $view_mode = $this
        ->find_view_mode($this->options, $this->view->row_index);
      $build = node_view($node, $view_mode);
      return drupal_render($build);
    }
  }

}

Classes

Namesort descending Description
views_parity_row_views_plugin_row_node_view Plugin which performs a node_view on the resulting object.