function date_views_argument_handler::summary_argument in Date 7
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.
Overrides views_handler_argument::summary_argument
File
- date_views/
includes/ date_views_argument_handler.inc, line 204 - Date API views argument handler.
Class
- date_views_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);
}