You are here

class date_plugin_display_attachment in Date 6.2

Same name and namespace in other branches
  1. 6 date_api.views.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 includes/date_api.views.inc
Implementation of hook_views_plugins().

File

includes/date_plugin_display_attachment.inc, line 12
Views attachment display handler.

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(
      'row_options',
      'row_plugin',
      'items_per_page',
    ))) {
      return FALSE;
    }
    return parent::defaultable_sections($section);
  }
  function option_definition() {
    $options = parent::option_definition();
    $options['style_plugin']['default'] = 'date_nav';
    $options['items_per_page']['default'] = 0;
    $options['row_plugin']['default'] = '';

    //$options['defaults']['default']['style_plugin'] = FALSE;
    $options['defaults']['default']['style_options'] = FALSE;
    $options['defaults']['default']['items_per_page'] = FALSE;
    $options['defaults']['default']['row_plugin'] = FALSE;
    $options['defaults']['default']['row_options'] = FALSE;
    return $options;
  }

}

Members