function date_api_argument_handler::summary_argument in Date 6.2
Provide the argument to use to link from the summary to the next level; this will be called once per row of a summary, and used as part of $view->get_url().
Parameters
$data: The query results for the row.
File
- includes/
date_api_argument_handler.inc, line 219 - Views argument handler.
Class
- date_api_argument_handler
- Date API argument handler.
Code
function summary_argument($data) {
$format = $this->date_handler
->views_formats($this->options['granularity'], 'sql');
$value = $data->{$this->name_alias};
$range = $this->date_handler
->arg_range($value);
return date_format_date($range[0], 'custom', $format);
}