Projet

Général

Profil

Paste
Télécharger (1,39 ko) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / modules / date_ical / includes / date_ical.views.inc @ c7b88c87

1
<?php
2

    
3
/**
4
 * @file
5
 * Declares our plugins to Views.
6
 */
7

    
8
/**
9
 * Implements hook_views_plugins().
10
 */
11
function date_ical_views_plugins() {
12
  $includes_path = drupal_get_path('module', 'date_ical') . '/includes';
13
  
14
  $data = array(
15
    'module' => 'date_ical',
16
    'style' => array(
17
      'date_ical' => array(
18
        'type' => 'feed',
19
        'title' => t('iCal Feed'),
20
        'help' => t('Generates an iCal feed from a View.'),
21
        'handler' => 'date_ical_plugin_style_ical_feed',
22
        'path' => $includes_path,
23
        'uses fields' => FALSE,
24
        'uses grouping' => FALSE,
25
        'uses row plugin' => TRUE,
26
        'uses options' => TRUE,
27
        'even empty' => TRUE,
28
      ),
29
    ),
30
    'row' => array(
31
      'date_ical' => array(
32
        'type' => 'feed',
33
        'title' => t('iCal Entity'),
34
        'help' => t('Render each entity in the view as an iCal VEVENT item.'),
35
        'handler' => 'date_ical_plugin_row_ical_entity',
36
        'path' => $includes_path,
37
        'uses options' => TRUE,
38
        'uses fields' => FALSE,
39
      ),
40
      'date_ical_fields' => array(
41
        'type' => 'feed',
42
        'title' => t('iCal Fields'),
43
        'help' => t('Builds an iCal VEVENT from inidividual Views fields.'),
44
        'handler' => 'date_ical_plugin_row_ical_fields',
45
        'path' => $includes_path,
46
        'uses options' => TRUE,
47
        'uses fields' => TRUE,
48
      ),
49
    ),
50
  );
51
  
52
  return $data;
53
}