You are here

public function date_ical_plugin_row_ical_fields::pre_render in Date iCal 7.3

Same name and namespace in other branches
  1. 7.2 includes/date_ical_plugin_row_ical_fields.inc \date_ical_plugin_row_ical_fields::pre_render()

Set up the environment for the render() function.

Overrides views_plugin_row::pre_render

File

includes/date_ical_plugin_row_ical_fields.inc, line 104
Defines the iCal Fields row style plugin, which lets users map view fields to the components of the VEVENTs in the iCal feed.

Class

date_ical_plugin_row_ical_fields
A Views plugin which builds an iCal VEVENT from a views row with Fields.

Code

public function pre_render($result) {

  // Get the language for this view.
  $this->language = $this->display->handler
    ->get_option('field_language');
  $substitutions = views_views_query_substitutions($this->view);
  if (array_key_exists($this->language, $substitutions)) {
    $this->language = $substitutions[$this->language];
  }
  $this->repeated_dates = array();
}