Now all modules are in core modules folder
This commit is contained in:
parent
5ba1cdfa0b
commit
05b6a91b0c
1907 changed files with 0 additions and 0 deletions
69
modules/views/modules/views.views.inc
Normal file
69
modules/views/modules/views.views.inc
Normal file
|
@ -0,0 +1,69 @@
|
|||
<?php
|
||||
/**
|
||||
* @file
|
||||
* Provide views data and handlers that aren't tied to any other module.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @defgroup views_views_module miscellaneous handlers
|
||||
*
|
||||
* @{
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implementation of hook_views_data()
|
||||
*/
|
||||
function views_views_data() {
|
||||
$data['views']['table']['group'] = t('Global');
|
||||
$data['views']['table']['join'] = array(
|
||||
'#global' => array(),
|
||||
);
|
||||
|
||||
$data['views']['random'] = array(
|
||||
'title' => t('Random'),
|
||||
'help' => t('Randomize the display order.'),
|
||||
'sort' => array(
|
||||
'handler' => 'views_handler_sort_random',
|
||||
),
|
||||
);
|
||||
|
||||
$data['views']['null'] = array(
|
||||
'title' => t('Null'),
|
||||
'help' => t('Allow an argument to be ignored. The query will not be altered by this argument.'),
|
||||
'argument' => array(
|
||||
'handler' => 'views_handler_argument_null',
|
||||
),
|
||||
);
|
||||
|
||||
$data['views']['nothing'] = array(
|
||||
'title' => t('Custom text'),
|
||||
'help' => t('Provide custom text or link.'),
|
||||
'field' => array(
|
||||
'handler' => 'views_handler_field_custom',
|
||||
),
|
||||
);
|
||||
|
||||
$data['views']['counter'] = array(
|
||||
'title' => t('View result counter'),
|
||||
'help' => t('Displays the actual position of the view result'),
|
||||
'field' => array(
|
||||
'handler' => 'views_handler_field_counter',
|
||||
),
|
||||
);
|
||||
|
||||
if (module_invoke('ctools', 'api_version', '1.7.1')) {
|
||||
$data['views']['expression'] = array(
|
||||
'title' => t('Math expression'),
|
||||
'help' => t('Evaluates a mathematical expression and displays it.'),
|
||||
'field' => array(
|
||||
'handler' => 'views_handler_field_math',
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
Reference in a new issue