You are here

function views_plugin_style_json::render in Views Datasource 6

Same name and namespace in other branches
  1. 7 views/plugins/views_plugin_style_json.inc \views_plugin_style_json::render()

Implementation of view_style_plugin::render()

File

./views_plugin_style_json.inc, line 122
Implementation of views_plugin_style for views_json

Class

views_plugin_style_json
Implementation of views_plugin_style

Code

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