function views_sort_expression_views_data_alter in Views Sort Expression 8
Same name and namespace in other branches
- 7 views/views_sort_expression.views.inc \views_sort_expression_views_data_alter()
Implements hook_views_data_alter().
Alter the table and field information from hook_views_data().
Parameters
array $data: An array of all information about Views tables and fields, collected from hook_views_data(), passed by reference.
See also
File
- ./
views_sort_expression.module, line 18
Code
function views_sort_expression_views_data_alter(array &$data) {
$data['views']['views_sort_expression'] = [
'title' => t('Expression'),
'help' => t('Allow you to use an SQL expression.'),
'sort' => [
'id' => 'views_sort_expression',
],
];
}