-
Notifications
You must be signed in to change notification settings - Fork 5
/
content_moderation.views.inc
44 lines (39 loc) · 1.02 KB
/
content_moderation.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
// $Id$
/*
* Implements hook_views_data().
*/
function content_moderation_views_data() {
$data = array();
$data['content_moderation_revision_state']['table']['group'] = t('Node Revision');
$data['content_moderation_revision_state']['table']['join'] = array(
'node_revisions' => array(
'left_field' => 'vid',
'field' => 'vid',
'type' => 'INNER',
),
);
$data['content_moderation_revision_state']['state'] = array(
'title' => t('Content Moderation state'),
'help' => t('Content moderation state of the node revisision'),
'filter' => array(
'handler' => 'content_moderation_handler_filter_state',
),
'field' => array(
'handler' => 'views_handler_field',
),
'sort' => array(
'handler' => 'views_handler_sort',
),
);
return $data;
}
function content_moderation_views_handlers() {
return array(
'handlers' => array(
'content_moderation_handler_filter_state' => array(
'parent' => 'views_handler_filter',
),
)
);
}