You are here

function views_ical_views_plugins in Views iCal 7

Implements hook_views_plugins

File

./views_ical.module, line 40

Code

function views_ical_views_plugins() {
  $module_path = drupal_get_path('module', 'views_ical');
  $theme_path = $module_path . '/theme';
  $plugins = array(
    'module' => 'views_ical',
    // This just tells our themes are elsewhere.
    'style' => array(
      'views_ical' => array(
        'title' => t('Views iCal Feed'),
        'help' => t('Generates an iCal VCALENDAR feed from a view.'),
        'handler' => 'views_ical_plugin_style_ical_feed',
        'path' => $module_path,
        'theme' => 'views_ical_vcalendar',
        'theme file' => 'theme.inc',
        'theme path' => $theme_path,
        'uses fields' => TRUE,
        'uses grouping' => FALSE,
        'uses row plugin' => TRUE,
        'uses options' => FALSE,
        'type' => 'feed',
        'even empty' => TRUE,
      ),
    ),
    'row' => array(
      'views_ical' => array(
        'title' => t('Views iCal Fields'),
        'help' => t('Display fields for an iCal VEVENT item.'),
        'handler' => 'views_plugin_row',
        'path' => $module_path,
        'theme' => 'views_ical_vevent',
        'theme file' => 'theme.inc',
        'theme path' => $theme_path,
        'uses options' => FALSE,
        'uses fields' => TRUE,
        'type' => 'feed',
      ),
    ),
  );
  return $plugins;
}