date_views_views_plugins

  1. drupal
    1. 7 date_views.views.inc function
Drupal 7 date_views_views_plugins()

Implements hook_views_plugins

File

sites/all/modules/date/date_views/includes/date_views.views.inc, line 33
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(
    'module' => 'date_views', // This just tells our themes are elsewhere. 
    '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,
      ),
    ),
  );
}