1
|
<?php
|
2
|
|
3
|
/**
|
4
|
* @file
|
5
|
* Views wizard for comment views.
|
6
|
*/
|
7
|
|
8
|
// Parent plugin.
|
9
|
if (module_exists('comment')) {
|
10
|
$plugin = array(
|
11
|
'name' => 'comment',
|
12
|
'base_table' => 'comment',
|
13
|
'created_column' => 'created',
|
14
|
'form_wizard_class' => array(
|
15
|
'file' => 'views_ui_comment_views_wizard.class.php',
|
16
|
'class' => 'ViewsUiCommentViewsWizard',
|
17
|
),
|
18
|
'title' => t('Comments'),
|
19
|
'filters' => array(
|
20
|
'status' => array(
|
21
|
'value' => COMMENT_PUBLISHED,
|
22
|
'table' => 'comment',
|
23
|
'field' => 'status',
|
24
|
),
|
25
|
'status_node' => array(
|
26
|
'value' => NODE_PUBLISHED,
|
27
|
'table' => 'node',
|
28
|
'field' => 'status',
|
29
|
'relationship' => 'nid',
|
30
|
),
|
31
|
),
|
32
|
'path_field' => array(
|
33
|
'id' => 'cid',
|
34
|
'table' => 'comment',
|
35
|
'field' => 'cid',
|
36
|
'exclude' => TRUE,
|
37
|
'link_to_comment' => FALSE,
|
38
|
'alter' => array(
|
39
|
'alter_text' => 1,
|
40
|
'text' => 'comment/[cid]#comment-[cid]',
|
41
|
),
|
42
|
),
|
43
|
);
|
44
|
}
|