You are here

public function views_plugin_row_node_view::render in Views (for Drupal 7) 7.3

Render a row object. This usually passes through to a theme template of some form, but not always.

Parameters

stdClass $row: A single row of the query result, so an element of $view->result.

Return value

string The rendered output of a single row, used by the style plugin.

Overrides views_plugin_row::render

File

modules/node/views_plugin_row_node_view.inc, line 129
Definition of views_plugin_row_node_view.

Class

views_plugin_row_node_view
Plugin which performs a node_view on the resulting object.

Code

public function render($row) {
  if (isset($this->nodes[$row->{$this->field_alias}])) {
    $node = $this->nodes[$row->{$this->field_alias}];
    $node->view = $this->view;
    $build = node_view($node, $this->options['view_mode']);
    return drupal_render($build);
  }
}