forked from pdrakeweb/Drupal-FullCalendar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fullcalendar.views.inc
80 lines (78 loc) · 2.25 KB
/
fullcalendar.views.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<?php
// $Id$
/**
* @file
* Contains views module hooks
*/
/**
* Implementation of hook_views_plugins().
*/
function fullcalendar_views_plugins() {
$path = drupal_get_path('module', 'fullcalendar');
$views_path = drupal_get_path('module', 'views');
return array(
'display' => array(
'parent' => array(
'no ui' => TRUE,
'handler' => 'views_plugin_display',
'path' => "$views_path/plugins",
'parent' => '',
),
'page' => array(
'handler' => 'views_plugin_display_page',
'path' => "$views_path/plugins",
'parent' => 'parent',
),
'fullcalendar' => array(
'title' => t('FullCalendar'),
'handler' => 'fullcalendar_plugin_display_page',
'help' => t('For use with FullCalendar style'),
'path' => $path,
'parent' => 'page',
'theme' => 'views_view',
'uses hook menu' => TRUE,
),
),
'style' => array(
'fullcalendar' => array(
'title' => t('FullCalendar'),
'help' => t('Displays items on a calendar.'),
'handler' => 'views_plugin_style_fullcalendar',
'theme' => 'views_view_fullcalendar',
'uses row plugin' => TRUE,
'uses options' => TRUE,
'uses grouping' => TRUE,
'type' => 'normal',
'parent' => 'default',
'even empty' => TRUE,
),
'fullcalendar_ajax_json' => array(
'title' => t('Fullcalendar AJAJ Endpoint'),
'theme' => 'views_view_ajax_json',
'help' => t('Displays nodes in the JSON data format'),
'handler' => 'views_plugin_style_fullcalendar_ajax_json',
'uses row plugin' => TRUE,
'uses options' => TRUE,
'uses fields' => TRUE,
'uses grouping' => FALSE,
'type' => 'ajax',
),
),
'row' => array(
'parent' => array(
'no ui' => TRUE,
'handler' => 'views_plugin_row',
'parent' => '',
),
'fullcalendar_node' => array(
'title' => t('Node - FullCalendar'),
'help' => t('For use with FullCalendar style'),
'handler' => 'views_plugin_node_fullcalendar',
'theme' => 'views_view_node_fullcalendar',
'uses fields' => FALSE,
'uses options' => TRUE,
'type' => 'normal',
),
),
);
}