You are here

class date_plugin_display_attachment in Date 6

Same name and namespace in other branches
  1. 6.2 includes/date_plugin_display_attachment.inc \date_plugin_display_attachment
  2. 7 date_views/includes/date_plugin_display_attachment.inc \date_plugin_display_attachment

The plugin that handles date navigation attachments.

Creates a special attachment for this purpose only.

Hierarchy

Expanded class hierarchy of date_plugin_display_attachment

1 string reference to 'date_plugin_display_attachment'
date_api_views_plugins in ./date_api.views.inc
Implementation of hook_views_plugins

File

./date_api.views.inc, line 414
Defines date-related Views data and plugins:

View source
class date_plugin_display_attachment extends views_plugin_display_attachment {

  // Require the date_nav style. That style has a date_nav type
  // so it won't show up as a style option on any other display.
  function get_style_type() {
    return 'date_nav';
  }

  // No options to set style, force it to the right value.
  function defaultable_sections($section = NULL) {
    if (in_array($section, array(
      'style_plugin',
      'row_options',
      'row_plugin',
      'items_per_page',
    ))) {
      return FALSE;
    }
    return parent::defaultable_sections($section);
  }
  function options(&$display) {
    parent::options($display);
    $display->display_options['style_plugin'] = 'date_nav';
    $display->display_options['items_per_page'] = 0;
    $display->display_options['row_plugin'] = '';
    $display->display_options['defaults']['style_plugin'] = FALSE;
    $display->display_options['defaults']['style_options'] = FALSE;
    $display->display_options['defaults']['items_per_page'] = FALSE;
    $display->display_options['defaults']['row_plugin'] = FALSE;
    $display->display_options['defaults']['row_options'] = FALSE;
  }

}

Members