1 date_views_argument_handler_simple.inc date_views_argument_handler_simple::format()

File

core/modules/date/views/date_views_argument_handler_simple.inc, line 92
Date API views argument handler.

Class

date_views_argument_handler_simple

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';
  }
}