-
Notifications
You must be signed in to change notification settings - Fork 1
/
simple_timeline.views.inc
44 lines (42 loc) · 1.23 KB
/
simple_timeline.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
<?php
/**
* @file
* simple_timeline.views.inc
* Created by JetBrains PhpStorm.
* User: alan
*/
/**
* Implements hook_views_plugin().
*/
function simple_timeline_views_plugins() {
return array(
'style' => array(
'simple_timeline_style' => array(
'title' => t('Simple Timeline'),
'handler' => 'simple_timeline_style_plugin',
'uses options' => TRUE,
'help' => t('Display the selected items on a timeline.'),
'theme' => 'views_view_list',
'uses row plugin' => TRUE,
'uses row class' => TRUE,
'uses fields' => TRUE,
'uses grouping' => FALSE,
'type' => 'normal',
// 'theme file' => backdrop_get_path('module', 'simple_timeline'),
// 'theme path' => backdrop_get_path('module', 'simple_timeline'),
),
),
'row' => array(
'simple_timeline_row' => array(
'title' => t('Simple Timeline Item'),
'handler' => 'simple_timeline_row_plugin',
'uses options' => TRUE,
'help' => t('Renderer for a timeline item.'),
'theme' => 'simple_timeline_fields',
'uses fields' => TRUE,
'type' => 'normal',
'theme path' => backdrop_get_path('module', 'simple_timeline'),
),
),
);
}