function date_ical_views_plugins in Date iCal 7
Same name and namespace in other branches
- 7.3 includes/date_ical.views.inc \date_ical_views_plugins()
- 7.2 includes/date_ical.views.inc \date_ical_views_plugins()
Implements hook_views_plugins().
File
- ./
date_ical.module, line 100 - Adds ical functionality to Views.
Code
function date_ical_views_plugins() {
$module_path = drupal_get_path('module', 'date_ical');
$theme_path = $module_path . '/theme';
$data = array(
'module' => 'date_ical',
// This just tells our themes are elsewhere.
'style' => array(
'date_ical' => array(
'title' => t('Date iCal Feed'),
'help' => t('Generates an iCal VCALENDAR feed from a view.'),
'handler' => 'date_ical_plugin_style_ical_feed',
'path' => $module_path,
'theme' => 'date_ical_vcalendar',
'theme file' => 'theme.inc',
'theme path' => $theme_path,
'uses fields' => TRUE,
'uses grouping' => FALSE,
'uses row plugin' => TRUE,
'uses options' => TRUE,
'type' => 'feed',
'even empty' => TRUE,
),
),
'row' => array(
'date_ical' => array(
'title' => t('Date iCal Entities'),
'help' => t('Display each entity as an iCal VEVENT item.'),
'handler' => 'date_ical_plugin_row_ical_feed',
'path' => $module_path,
'theme' => 'date_ical_vevent',
'theme file' => 'theme.inc',
'theme path' => $theme_path,
'uses options' => TRUE,
'uses fields' => FALSE,
'type' => 'feed',
),
),
);
return $data;
}