You are here

function _datex_views_handler_field_date::options_form in Datex 7.3

Schema to use for the displayed date.

Overrides views_handler_field_date::options_form

File

./datex.views.inc, line 283
Datex views integration.

Class

_datex_views_handler_field_date

Code

function options_form(&$form, &$form_state) {
  parent::options_form($form, $form_state);
  $form['datex_schema'] = [
    '#type' => 'select',
    '#title' => t('Datex schema'),
    '#options' => _datex_schema_form_options(),
    '#default_value' => isset($this->options['datex_schema']) ? $this->options['datex_schema'] : 'default',
  ];
  $form['datex_format_date_sql'] = [
    '#type' => 'checkbox',
    '#title' => t('Use SQL to format date (views_date_format_sql module compatibility)'),
    '#description' => t('Use the SQL database to format the date. This enables date values to be used in grouping aggregation.' . ' This option is also provided by views_date_format_sql too, but since datex overrides this module, this option is also provided here.' . " There won't be any issue activating both modules (probably through a dependency)."),
    '#default_value' => isset($this->options['datex_format_date_sql']) ? $this->options['datex_format_date_sql'] : FALSE,
  ];
}