You are here

function calendar_plugin_display_attachment::pre_execute in Calendar 7

Same name and namespace in other branches
  1. 6.2 includes/calendar_plugin_display_attachment.inc \calendar_plugin_display_attachment::pre_execute()
  2. 7.2 includes/calendar_plugin_display_attachment.inc \calendar_plugin_display_attachment::pre_execute()

Set up any variables on the view prior to execution.

These are separated from execute because they are extremely common and unlikely to be overridden on an individual display.

Overrides views_plugin_display::pre_execute

File

includes/calendar_plugin_display_attachment.inc, line 152
Views display plugin for the Calendar module.

Class

calendar_plugin_display_attachment
The plugin that handles calendar attachment displays.

Code

function pre_execute() {

  // Make sure parent function is called so things like items per page get set.
  parent::pre_execute();
  $this->view->date_info->display_granularity = $this
    ->calendar_type();
  $this->view->date_info->calendar_type = $this
    ->calendar_type();
}