You are here

public function date_views_argument_handler::admin_summary in Date 7.3

Same name and namespace in other branches
  1. 8 date_views/includes/date_views_argument_handler.inc \date_views_argument_handler::admin_summary()
  2. 7 date_views/includes/date_views_argument_handler.inc \date_views_argument_handler::admin_summary()
  3. 7.2 date_views/includes/date_views_argument_handler.inc \date_views_argument_handler::admin_summary()

Provide text for the administrative summary.

Overrides views_handler::admin_summary

File

date_views/includes/date_views_argument_handler.inc, line 113
Date API views argument handler.

Class

date_views_argument_handler
Date API argument handler.

Code

public 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();
  }
}