function _datex_date_views_argument_handler_simple::format in Datex 7.3
1 call to _datex_date_views_argument_handler_simple::format()
- _datex_date_views_argument_handler_simple::init in ./
datex.views.inc - Get granularity.
File
- ./
datex.views.inc, line 565 - 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 format() {
if (!empty($this->options['granularity'])) {
return $this->date_handler
->views_formats($this->options['granularity']);
}
else {
return !empty($this->options[$this->option_name]) ? $this->options[$this->option_name] : 'Y-m';
}
}