You are here

function calendar_ical_views_plugins in Calendar 7.2

Same name and namespace in other branches
  1. 6.2 calendar_ical/calendar_ical.views.inc \calendar_ical_views_plugins()
  2. 7 calendar_ical/calendar_ical.views.inc \calendar_ical_views_plugins()

Implementation of hook_views_plugins

File

calendar_ical/calendar_ical.views.inc, line 12
Views handlers for the Calendar iCal module.

Code

function calendar_ical_views_plugins() {
  $views_path = drupal_get_path('module', 'views');
  $module_path = drupal_get_path('module', 'calendar_ical');
  module_load_include('inc', 'calendar_ical', 'theme.inc');
  $data = array(
    'module' => 'calendar_ical',
    // This just tells our themes are elsewhere.
    'display' => array(
      'calendar_ical' => array(
        'title' => t('iCal feed'),
        'help' => t('Display the view as an iCal feed.'),
        'handler' => 'calendar_plugin_display_ical',
        'path' => "{$module_path}",
        'parent' => 'page',
        'uses hook menu' => TRUE,
        'theme' => 'views_view',
        'no ui' => TRUE,
        'no remove' => TRUE,
        'use ajax' => FALSE,
        'use pager' => FALSE,
        'accept attachments' => FALSE,
        'admin' => t('iCal feed'),
        'help topic' => 'display-ical',
      ),
    ),
    'style' => array(
      'ical' => array(
        'title' => t('iCal feed'),
        'help' => t('Generates an iCal feed from a view.'),
        'handler' => 'calendar_plugin_style_ical',
        'path' => "{$module_path}",
        'theme' => 'calendar_view_ical',
        'theme file' => 'theme.inc',
        'theme path' => "{$module_path}",
        'parent' => 'rss',
        'uses row plugin' => FALSE,
        'uses fields' => TRUE,
        'uses row plugin' => FALSE,
        'uses options' => TRUE,
        'type' => 'ical',
        'even empty' => TRUE,
      ),
    ),
  );
  return $data;
}