function _datex_date_views_argument_handler_simple::_option_definition in Datex 7.3
Default value for the date_fields option.
1 call to _datex_date_views_argument_handler_simple::_option_definition()
- _datex_date_views_argument_handler_simple::option_definition in ./
datex.views.inc - Default value for the date_fields option.
File
- ./
datex.views.inc, line 604 - Datex views integration.
Class
- _datex_date_views_argument_handler_simple
- Copied from date_views module. So we have no hard dependency on it.
Code
function _option_definition() {
$options = parent::option_definition();
$options['year_range'] = [
'default' => '-3:+3',
];
$options['granularity'] = [
'default' => 'month',
];
$options['granularity_reset'] = [
'default' => FALSE,
];
$options['default_argument_type']['default'] = 'date';
$options['add_delta'] = [
'default' => '',
];
$options['use_fromto'] = [
'default' => '',
];
$options['title_format'] = [
'default' => '',
];
$options['title_format_custom'] = [
'default' => '',
];
return $options;
}