You are here

function date_views_argument_handler::option_definition in Date 8

Same name and namespace in other branches
  1. 7.3 date_views/includes/date_views_argument_handler.inc \date_views_argument_handler::option_definition()
  2. 7 date_views/includes/date_views_argument_handler.inc \date_views_argument_handler::option_definition()
  3. 7.2 date_views/includes/date_views_argument_handler.inc \date_views_argument_handler::option_definition()

Default value for the date_fields option.

Overrides date_views_argument_handler_simple::option_definition

File

date_views/includes/date_views_argument_handler.inc, line 33
Date API views argument handler. This argument combines multiple date arguments into a single argument where all fields are controlled by the same date and can be combined with either AND or OR.

Class

date_views_argument_handler
Date API argument handler.

Code

function option_definition() {
  $options = parent::option_definition();
  $options['date_fields'] = array(
    'default' => array(),
  );
  $options['date_method'] = array(
    'default' => 'OR',
  );
  $options['date_group'] = array(
    'default' => 'date',
  );
  return $options;
}