You are here

function views_cumulus_style_plugin::render in Cumulus 6.2

File

includes/views/views_cumulus_style_plugin.inc, line 33
Contains the cumulus style plugin.

Class

views_cumulus_style_plugin
Style plugin to render the results as a 3D Flash-cloud.

Code

function render() {
  $options = $this->view->style_options;
  if (empty($options['title_field'])) {
    drupal_set_message(t('You have to define a title field to display items.'), 'error');
    return;
  }
  if (!$this
    ->uses_fields()) {
    return;
  }
  if (isset($this->rendered_fields)) {
    return $this->rendered_fields;
  }
  $this->view->row_index = 0;
  $keys = array_keys($this->view->field);
  foreach ($this->view->result as $count => $row) {
    $this->view->row_index = $count;
    foreach ($keys as $id) {
      $this->rendered_fields[$count][$id] = $this->view->field[$id]
        ->theme($row);
    }
  }
  unset($this->view->row_index);

  //dpm($this->rendered_fields);
  $output .= theme($this
    ->theme_functions(), $this->view, $this->options, $rows, $title);
  return $output;
}