node_revision.inc
980 Bytes
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
<?php
/**
* @file
* Views wizard for node revision views.
*/
$plugin = array(
'name' => 'node_revision',
'base_table' => 'node_revision',
'created_column' => 'timestamp',
'form_wizard_class' => array(
'file' => 'views_ui_node_revision_views_wizard.class.php',
'class' => 'ViewsUiNodeRevisionViewsWizard',
),
'title' => t('Content revisions'),
'filters' => array(
'status' => array(
'value' => '1',
'table' => 'node', // @todo - unclear if this should be node or node_revision
'field' => 'status',
),
),
'path_field' => array(
'id' => 'vid',
'table' => 'node_revision',
'field' => 'vid',
'exclude' => TRUE,
'alter' => array(
'alter_text' => 1,
'text' => 'node/[nid]/revisions/[vid]/view',
),
),
'path_fields_supplemental' => array(
array(
'id' => 'nid',
'table' => 'node',
'field' => 'nid',
'exclude' => TRUE,
'link_to_node' => FALSE,
),
),
);