You are here

function date_views_views_plugins in Date 7.3

Same name and namespace in other branches
  1. 8 date_views/includes/date_views.views.inc \date_views_views_plugins()
  2. 7 date_views/includes/date_views.views.inc \date_views_views_plugins()
  3. 7.2 date_views/includes/date_views.views.inc \date_views_views_plugins()

Implements hook_views_plugins().

File

date_views/includes/date_views.views.inc, line 35
Defines date-related Views data and plugins:.

Code

function date_views_views_plugins() {
  $path = drupal_get_path('module', 'date_views');
  $views_path = drupal_get_path('module', 'views');
  module_load_include('inc', 'date_views', 'theme/theme');
  return array(
    // This just tells our themes are elsewhere.
    'module' => 'date_views',
    'display' => array(
      // Display plugin for date navigation.
      'date_nav' => array(
        'title' => t('Date browser'),
        'help' => t('Date back/next navigation to attach to other displays. Requires the Date argument.'),
        'handler' => 'date_plugin_display_attachment',
        'parent' => 'attachment',
        'path' => "{$path}/includes",
        'theme' => 'views_view',
        'use ajax' => TRUE,
        'admin' => t('Date browser'),
        'help topic' => 'date-browser',
      ),
    ),
    'pager' => array(
      'date_views_pager' => array(
        'title' => t('Page by date'),
        'help' => t('Page using the value of a date field.'),
        'handler' => 'date_views_plugin_pager',
        'path' => "{$path}/includes",
        'help topic' => 'date-views-pager',
        'uses options' => TRUE,
      ),
    ),
    'style' => array(
      'date_nav' => array(
        'title' => t('Date browser style'),
        'help' => t('Creates back/next navigation.'),
        'handler' => 'date_navigation_plugin_style',
        'path' => "{$path}/includes",
        'theme' => 'date_navigation',
        'theme file' => 'theme.inc',
        'theme path' => "{$path}/theme",
        'uses row plugin' => FALSE,
        'uses fields' => FALSE,
        'uses options' => TRUE,
        'type' => 'date_nav',
        'even empty' => TRUE,
      ),
    ),
  );
}