public function date_views_argument_handler_simple::format in Date 7.2
Same name and namespace in other branches
- 8 date_views/includes/date_views_argument_handler_simple.inc \date_views_argument_handler_simple::format()
- 7.3 date_views/includes/date_views_argument_handler_simple.inc \date_views_argument_handler_simple::format()
1 call to date_views_argument_handler_simple::format()
- date_views_argument_handler_simple::init in date_views/
includes/ date_views_argument_handler_simple.inc - Init the handler with necessary data.
File
- date_views/
includes/ date_views_argument_handler_simple.inc, line 50 - Date API views argument handler.
Class
- date_views_argument_handler_simple
- Date API views argument handler.
Code
public 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';
}
}