You are here

function calendar_plugin_display_attachment::calendar_type in Calendar 7.2

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

Identify the period of this display.

4 calls to calendar_plugin_display_attachment::calendar_type()
calendar_plugin_display_attachment::attach_to in includes/calendar_plugin_display_attachment.inc
Attach only the appropriate displays for the current argument.
calendar_plugin_display_attachment::options_form in includes/calendar_plugin_display_attachment.inc
Provide the default form for setting options.
calendar_plugin_display_attachment::option_definition in includes/calendar_plugin_display_attachment.inc
Add custom option definitions.
calendar_plugin_display_attachment::pre_execute in includes/calendar_plugin_display_attachment.inc
Set up any variables on the view prior to execution.

File

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

Class

calendar_plugin_display_attachment
The plugin that handles calendar attachment displays.

Code

function calendar_type() {
  $types = calendar_display_types();
  $default = $this
    ->get_option('calendar_type');
  if (!array_key_exists($default, $types)) {
    $default = 'month';
  }
  return $default;
}