You are here

function date_views_argument_handler::option_definition in Date 7

Same name and namespace in other branches
  1. 8 date_views/includes/date_views_argument_handler.inc \date_views_argument_handler::option_definition()
  2. 7.3 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 views_handler_argument::option_definition

File

date_views/includes/date_views_argument_handler.inc, line 53
Date API views argument handler.

Class

date_views_argument_handler
Date API argument handler.

Code

function option_definition() {
  $options = parent::option_definition();
  $options['date_fields'] = array(
    'default' => array(),
  );
  $options['year_range'] = array(
    'default' => '-3:+3',
  );
  $options['date_method'] = array(
    'default' => 'OR',
  );
  $options['granularity'] = array(
    'default' => 'month',
  );
  return $options;
}