You are here

function date_api_filter_handler::options in Date 6

File

./date_api.views.inc, line 539
Defines date-related Views data and plugins:

Class

date_api_filter_handler
A flexible, configurable date filter.

Code

function options(&$options) {
  parent::options($options);
  $options['granularity'] = 'day';
  $options['adjustment_field'] = 0;

  // We use different values than the parent form, so we must
  // construct our own value options.
  $options['value'] = array();
  foreach (array(
    'value',
    'min',
    'max',
  ) as $prefix) {
    foreach ($this->date_handler
      ->date_parts() as $key => $part) {
      $options['value'][$prefix . $key] = '';
    }
  }
}