function date_views_argument_handler::admin_summary in Date 8
Same name and namespace in other branches
- 7.3 date_views/includes/date_views_argument_handler.inc \date_views_argument_handler::admin_summary()
- 7 date_views/includes/date_views_argument_handler.inc \date_views_argument_handler::admin_summary()
- 7.2 date_views/includes/date_views_argument_handler.inc \date_views_argument_handler::admin_summary()
File
- date_views/
includes/ date_views_argument_handler.inc, line 99 - Date API views argument handler. This argument combines multiple date arguments into a single argument where all fields are controlled by the same date and can be combined with either AND or OR.
Class
- date_views_argument_handler
- Date API argument handler.
Code
function admin_summary() {
$fields = date_views_fields($this->base_table);
if (!empty($this->options['date_fields'])) {
$output = array();
foreach ($this->options['date_fields'] as $field) {
if (array_key_exists($field, $fields['name'])) {
$output[] = $fields['name'][$field]['label'];
}
}
return implode('<br />' . $this->options['date_method'] . ' ', $output);
}
else {
return parent::admin_summary();
}
}