Projet

Général

Profil

Paste
Télécharger (980 octets) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / modules / views / plugins / views_wizard / node_revision.inc @ 5d12d676

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',
21
// @todo - unclear if this should be node or node_revision
22
      'field' => 'status',
23
    ),
24
  ),
25
  'path_field' => array(
26
    'id' => 'vid',
27
    'table' => 'node_revision',
28
    'field' => 'vid',
29
    'exclude' => TRUE,
30
    'alter' => array(
31
      'alter_text' => 1,
32
      'text' => 'node/[nid]/revisions/[vid]/view',
33
    ),
34
  ),
35
  'path_fields_supplemental' => array(
36
    array(
37
      'id' => 'nid',
38
      'table' => 'node',
39
      'field' => 'nid',
40
      'exclude' => TRUE,
41
      'link_to_node' => FALSE,
42
    ),
43
  ),
44
);