1
|
<?php
|
2
|
|
3
|
/**
|
4
|
* @file
|
5
|
* Views wizard for node revision views.
|
6
|
*/
|
7
|
|
8
|
$plugin = array(
|
9
|
'name' => 'node_revision',
|
10
|
'base_table' => 'node_revision',
|
11
|
'created_column' => 'timestamp',
|
12
|
'form_wizard_class' => array(
|
13
|
'file' => 'views_ui_node_revision_views_wizard.class.php',
|
14
|
'class' => 'ViewsUiNodeRevisionViewsWizard',
|
15
|
),
|
16
|
'title' => t('Content revisions'),
|
17
|
'filters' => array(
|
18
|
'status' => array(
|
19
|
'value' => '1',
|
20
|
'table' => 'node', // @todo - unclear if this should be node or node_revision
|
21
|
'field' => 'status',
|
22
|
),
|
23
|
),
|
24
|
'path_field' => array(
|
25
|
'id' => 'vid',
|
26
|
'table' => 'node_revision',
|
27
|
'field' => 'vid',
|
28
|
'exclude' => TRUE,
|
29
|
'alter' => array(
|
30
|
'alter_text' => 1,
|
31
|
'text' => 'node/[nid]/revisions/[vid]/view',
|
32
|
),
|
33
|
),
|
34
|
'path_fields_supplemental' => array(
|
35
|
array(
|
36
|
'id' => 'nid',
|
37
|
'table' => 'node',
|
38
|
'field' => 'nid',
|
39
|
'exclude' => TRUE,
|
40
|
'link_to_node' => FALSE,
|
41
|
),
|
42
|
),
|
43
|
);
|