Projet

Général

Profil

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

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

1
<?php
2

    
3
/**
4
 * @file
5
 * Views wizard for node views.
6
 */
7

    
8
$plugin = array(
9
  'name' => 'node',
10
  'base_table' => 'node',
11
  'created_column' => 'created',
12
  'available_sorts' => array(
13
    'title:DESC' => t('Title'),
14
  ),
15
  'form_wizard_class' => array(
16
    'file' => 'views_ui_node_views_wizard.class.php',
17
    'class' => 'ViewsUiNodeViewsWizard',
18
  ),
19
  'title' => t('Content'),
20
  'filters' => array(
21
    'status' => array(
22
      'value' => NODE_PUBLISHED,
23
      'table' => 'node',
24
      'field' => 'status',
25
    ),
26
  ),
27
  'path_field' => array(
28
    'id' => 'nid',
29
    'table' => 'node',
30
    'field' => 'nid',
31
    'exclude' => TRUE,
32
    'link_to_node' => FALSE,
33
    'alter' => array(
34
      'alter_text' => 1,
35
      'text' => 'node/[nid]',
36
    ),
37
  ),
38
);
39

    
40
if (module_exists('statistics')) {
41
  $plugin['available_sorts']['node_counter-totalcount:DESC'] = t('Number of hits');
42
}