You are here

function views_plugin_style_xml::render in Views Datasource 7

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

Implementation of view_style_plugin::render()

Overrides views_plugin_style::render

File

views/plugins/views_plugin_style_xml.inc, line 186
Implements views_plugin_style for views_xml

Class

views_plugin_style_xml
Implements views_plugin_style

Code

function render() {
  $view = $this->view;
  $options = $this->options;
  $field = $view->field;
  $rows = array();
  foreach ($view->result as $count => $row) {
    $view->row_index = $count;
    $rows[] = _views_xml_render_fields($view, $row);
  }
  unset($view->row_index);
  return theme($this
    ->theme_functions(), array(
    'view' => $view,
    'options' => $options,
    'rows' => $rows,
  ));
}