function views_raw_sql_views_data in Views Raw SQL 7
Same name and namespace in other branches
- 8 views_raw_sql.views.inc \views_raw_sql_views_data()
- 6 views_raw_sql.module \views_raw_sql_views_data()
Implements hook_views_data().
File
- ./
views_raw_sql.module, line 30
Code
function views_raw_sql_views_data() {
$data = array();
$data['views_raw_sql'] = array(
'table' => array(
'group' => t('Raw SQL'),
'join' => array(
'#global' => array(),
),
),
);
$data['views_raw_sql']['raw_field'] = array(
'title' => t('Raw field'),
'help' => t('Provide raw SQL field expression.'),
'field' => array(
'click sortable' => TRUE,
'handler' => 'views_handler_field_views_raw_sql',
),
);
$data['views_raw_sql']['raw_sort'] = array(
'title' => t('Raw sort'),
'help' => t('Provide raw SQL sort exporession.'),
'sort' => array(
'handler' => 'views_handler_sort_views_raw_sql',
),
);
$data['views_raw_sql']['raw_filter'] = array(
'title' => t('Raw filter'),
'help' => t('Provide raw SQL filter exporession.'),
'filter' => array(
'handler' => 'views_handler_filter_views_raw_sql',
),
);
return $data;
}