1 date_views_argument_handler.inc | date_views_argument_handler::admin_summary() |
Provide text for the administrative summary
Overrides views_handler::admin_summary
File
- core/
modules/ date/ views/ date_views_argument_handler.inc, line 101 - 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
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();
}
}