Revert "Re-applying patch from http://drupal.org/files/views_integration-588728-11...
[sandbox/ergonlogic/1226310.git] / modules / hosting / task / hosting_task.views.inc
1 <?php
2 /**
3 * @file Hosting task views integration.
4 */
5
6 /**
7 * Implementation of hook_views_handlers() to register all of the basic handlers
8 * views uses.
9 */
10 function hosting_task_views_handlers() {
11 return array(
12 'info' => array(
13 'path' => drupal_get_path('module', 'hosting_task'),
14 ),
15 'handlers' => array(
16 'hosting_task_handler_filter_hosting_task_type' => array(
17 'parent' => 'views_handler_filter_in_operator',
18 ),
19 ),
20 );
21 }
22
23 /**
24 * Implements hook_views_data().
25 */
26 function hosting_task_views_data() {
27 $data['hosting_task'] = array(
28 'table' => array(
29 'group' => 'Hosting Task',
30 'title' => 'Task',
31 'join' => array(
32 'node' => array(
33 'left_field' => 'vid',
34 'field' => 'vid',
35 ),
36 ),
37 ),
38 'task_type' => array(
39 'title' => t('Type'),
40 'help' => t(''),
41 'field' => array(
42 'handler' => 'views_handler_field',
43 'click sortable' => TRUE,
44 ),
45 'filter' => array(
46 'handler' => 'hosting_task_handler_filter_hosting_task_type',
47 ),
48 ),
49 'rid' => array(
50 'title' => t('Reference'),
51 'help' => t(''),
52 'relationship' => array(
53 'handler' => 'views_handler_relationship',
54 'base' => 'node',
55 'field' => 'nid',
56 'label' => t('Reference'),
57 ),
58 ),
59 'task_status' => array(
60 'title' => t('Status'),
61 'help' => t('Current status of the task.'),
62 'field' => array(
63 'handler' => 'views_handler_field',
64 'click sortable' => TRUE,
65 ),
66 ),
67 'executed' => array(
68 'title' => t('Executed'),
69 'help' => t('Date this task was executed.'),
70 'field' => array(
71 'handler' => 'views_handler_field_date',
72 'click sortable' => TRUE,
73 ),
74 ),
75 );
76 return $data;
77 }
78
79