Projet

Général

Profil

Paste
Télécharger (2,24 ko) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / modules / rules / rules_scheduler / includes / rules_scheduler.views.inc @ 950416da

1
<?php
2

    
3
/**
4
 * @file
5
 * Views integration for the rules scheduler module.
6
 */
7

    
8
/**
9
 * Implements hook_views_data().
10
 *
11
 * Specifies the list of future scheduled tasks displayed on the schedule page.
12
 */
13
function rules_scheduler_views_data() {
14
  $table = array(
15
    'rules_scheduler' => array(
16
      'table' => array(
17
        'group' => 'Rules scheduler',
18
        'base' => array(
19
          'field' => 'tid',
20
          'title' => t('Scheduled Rules components'),
21
          'help' => t("Scheduled Rules components that are executed based on time and cron"),
22
          'weight' => -10,
23
        ),
24
      ),
25
      'tid' => array(
26
        'title' => t('Tid'),
27
        'help' => t('The internal ID of the scheduled component'),
28
        'field' => array(
29
          'click sortable' => TRUE,
30
        ),
31
        'filter' => array(
32
          'handler' => 'views_handler_filter_numeric',
33
        ),
34
        'sort' => array(
35
          'handler' => 'views_handler_sort',
36
        ),
37
      ),
38
      'config' => array(
39
        'title' => t('Component name'),
40
        'help' => t('The name of the component'),
41
        'field' => array(
42
          'click sortable' => TRUE,
43
        ),
44
        'filter' => array(
45
          'handler' => 'rules_scheduler_views_filter',
46
        ),
47
        'argument' => array(
48
          'handler' => 'views_handler_argument_string',
49
        ),
50
        'sort' => array(
51
          'handler' => 'views_handler_sort',
52
        ),
53
      ),
54
      'date' => array(
55
        'title' => t('Scheduled date'),
56
        'help' => t('Scheduled date and time stamp'),
57
        'field' => array(
58
          'handler' => 'views_handler_field_date',
59
          'click sortable' => TRUE,
60
        ),
61
        'filter' => array(
62
          'handler' => 'views_handler_filter',
63
        ),
64
        'sort' => array(
65
          'handler' => 'views_handler_sort',
66
        ),
67
      ),
68
      'identifier' => array(
69
        'title' => t('User provided identifier'),
70
        'help' => t('ID to recognize this specific scheduled task'),
71
        'field' => array(
72
          'click sortable' => TRUE,
73
        ),
74
        'filter' => array(
75
          'handler' => 'views_handler_filter_string',
76
        ),
77
        'sort' => array(
78
          'handler' => 'views_handler_sort',
79
        ),
80
      ),
81
    ),
82
  );
83
  return $table;
84
}