You are here

public function date_views_argument_handler_simple::title in Date 7.2

Same name and namespace in other branches
  1. 8 date_views/includes/date_views_argument_handler_simple.inc \date_views_argument_handler_simple::title()
  2. 7.3 date_views/includes/date_views_argument_handler_simple.inc \date_views_argument_handler_simple::title()

Get the title this argument will assign the view, given the argument.

This usually needs to be overridden to provide a proper title.

Overrides views_handler_argument::title

File

date_views/includes/date_views_argument_handler_simple.inc, line 240
Date API views argument handler.

Class

date_views_argument_handler_simple
Date API views argument handler.

Code

public function title() {
  $format = !empty($this->options['title_format_custom']) && !empty($this->options['title_format_custom']) ? $this->options['title_format_custom'] : $this->date_handler
    ->views_formats($this->options['granularity'], 'display');
  $range = $this->date_handler
    ->arg_range($this->argument);
  return date_format_date($range[0], 'custom', $format);
}