You are here

function views_sort_expression_views_data_alter in Views Sort Expression 7

Same name and namespace in other branches
  1. 8 views_sort_expression.module \views_sort_expression_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

hook_views_data()

File

views/views_sort_expression.views.inc, line 12

Code

function views_sort_expression_views_data_alter(array &$data) {
  $data['views']['views_sort_expression'] = array(
    'title' => t('Expression'),
    'help' => t('Allow you to use an SQL expression.'),
    'sort' => array(
      'handler' => 'views_sort_expression_handler',
    ),
  );
}