5 * Provide views data and handlers that aren't tied to any other module.
7 * @ingroup views_module_handlers
11 * Implements hook_views_data().
13 function views_views_data() {
14 $data['views']['table']['group'] = t('Global');
15 $data['views']['table']['join'] = array(
16 // #global is a special flag which let's a table appear all the time.
20 $data['views']['random'] = array(
21 'title' => t('Random'),
22 'help' => t('Randomize the display order.'),
24 'handler' => 'views_handler_sort_random',
28 $data['views']['null'] = array(
30 'help' => t('Allow a contextual filter value to be ignored. The query will not be altered by this contextual filter value. Can be used when contextual filter values come from the URL, and a part of the URL needs to be ignored.'),
32 'handler' => 'views_handler_argument_null',
36 $data['views']['nothing'] = array(
37 'title' => t('Custom text'),
38 'help' => t('Provide custom text or link.'),
40 'handler' => 'views_handler_field_custom',
44 $data['views']['counter'] = array(
45 'title' => t('View result counter'),
46 'help' => t('Displays the actual position of the view result'),
48 'handler' => 'views_handler_field_counter',
52 $data['views']['area'] = array(
53 'title' => t('Text area'),
54 'help' => t('Provide markup text for the area.'),
56 'handler' => 'views_handler_area_text',
60 $data['views']['area_text_custom'] = array(
61 'title' => t('Unfiltered text'),
62 'help' => t('Add unrestricted, custom text or markup. This is similar to the custom text field.'),
64 'handler' => 'views_handler_area_text_custom',
68 $data['views']['view'] = array(
69 'title' => t('View area'),
70 'help' => t('Insert a view inside an area.'),
72 'handler' => 'views_handler_area_view',
76 $data['views']['result'] = array(
77 'title' => t('Result summary'),
78 'help' => t('Shows result summary, for example the items per page.'),
80 'handler' => 'views_handler_area_result',
84 $data['views']['messages'] = array(
85 'title' => t('Messages'),
86 'help' => t('Displays messages in the area.'),
88 'handler' => 'views_handler_area_messages',
92 if (module_exists('contextual')) {
93 $data['views']['contextual_links'] = array(
94 'title' => t('Contextual Links'),
95 'help' => t('Display fields in a contextual links menu.'),
97 'handler' => 'views_handler_field_contextual_links',
102 $data['views']['ctools_dropdown'] = array(
103 'title' => t('Dropdown links'),
104 'help' => t('Displays fields in a dropdown list, like on the views listing page.'),
106 'handler' => 'views_handler_field_ctools_dropdown',
110 $data['views']['combine'] = array(
111 'title' => t('Combine fields filter'),
112 'help' => t('Combine two fields together and search by them.'),
114 'handler' => 'views_handler_filter_combine',
118 if (module_invoke('ctools', 'api_version', '1.7.1')) {
119 $data['views']['expression'] = array(
120 'title' => t('Math expression'),
121 'help' => t('Evaluates a mathematical expression and displays it.'),
123 'handler' => 'views_handler_field_math',
129 $data['views']['fields_compare'] = array(
130 'title' => t('Fields comparison'),
131 'help' => t('Compare database fields against eachother.'),
133 'help' => t('Use fields comparison to filter the result of the view.'),
134 'handler' => 'views_handler_filter_fields_compare',