You are here

function date_ical_plugin_style_ical_feed::render in Date iCal 7

Same name and namespace in other branches
  1. 7.3 includes/date_ical_plugin_style_ical_feed.inc \date_ical_plugin_style_ical_feed::render()
  2. 7.2 includes/date_ical_plugin_style_ical_feed.inc \date_ical_plugin_style_ical_feed::render()

Render the display in this style.

Overrides views_plugin_style_rss::render

File

./date_ical_plugin_style_ical_feed.inc, line 46
Views style plugin for the Date iCal module.

Class

date_ical_plugin_style_ical_feed
Default style plugin to render an iCal feed.

Code

function render() {
  if (empty($this->row_plugin)) {
    debug('views_plugin_style_default: Missing row plugin');
    return;
  }
  $rows = array();
  foreach ($this->view->result as $row_index => $row) {
    $this->view->row_index = $row_index;
    $rendered_row = $this->row_plugin
      ->render($row);
    if ($rendered_row) {
      $rows[] = $rendered_row;
    }
  }
  $output = theme($this
    ->theme_functions(), array(
    'view' => $this->view,
    'options' => $this->options,
    'rows' => $rows,
  ));
  unset($this->view->row_index);
  return $output;
}