You are here

function views_raw_sql_views_data in Views Raw SQL 6

Same name and namespace in other branches
  1. 8 views_raw_sql.views.inc \views_raw_sql_views_data()
  2. 7 views_raw_sql.module \views_raw_sql_views_data()

Implements hook_views_data().

File

./views_raw_sql.module, line 29

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(
      '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',
    ),
  );
  return $data;
}