You are here

function views_plugin_style_json::render in Search Autocomplete 6.4

Implementation of view_style_plugin::render()

File

json_autocomplete/plugin/views_plugin_style_json.inc, line 100
Implementation of views_plugin_style for json_autocomplete.

Class

views_plugin_style_json
Implementation of views_plugin_style

Code

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