You are here

function views_date_format_sql_handler_date::options_form in Views Date Format SQL 7.3

Default options form provides the label widget that all fields should have.

Overrides views_handler_field_date::options_form

File

includes/views_date_format_sql_handler_date.inc, line 20
This file contains the class to override views_handler_field_date.

Class

views_date_format_sql_handler_date
Allows to removes the date formatting from render() and put it in query().

Code

function options_form(&$form, &$form_state) {
  parent::options_form($form, $form_state);
  $form['format_date_sql'] = array(
    '#type' => 'checkbox',
    '#title' => t('Use SQL to format date'),
    '#description' => t('Use the SQL database to format the date. This enables date values to be used in grouping aggregation.'),
    '#default_value' => $this->options['format_date_sql'],
  );
}