You are here

function views_plugin_row_rdf::render in Views Atom 7

Same name and namespace in other branches
  1. 6 views/views_plugin_row_rdf.inc \views_plugin_row_rdf::render()

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

1 method overrides views_plugin_row_rdf::render()
views_plugin_row_rdf_node::render in ./views_plugin_row_rdf_node.inc
Render a row object. This usually passes through to a theme template of some form, but not always.

File

./views_plugin_row_rdf.inc, line 17
Contains the RDF row style plugin.

Class

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

Code

function render($row) {

  // For the most part, this code is taken from node_feed() in node.module
  global $base_url;
  $nid = $row->{$this->field_alias};
  if (!is_numeric($nid)) {
    return;
  }

  // @todo, Please change this theme call to use an associative array for the $variables parameter.
  return theme($this
    ->theme_functions(), $this->view, $this->options, $row);
}