You are here

function date_views_argument_handler::admin_summary in Date 7

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.3 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 141
Date API views argument handler.

Class

date_views_argument_handler
Date API argument handler.

Code

function admin_summary() {
  $fields = date_views_fields($this->view->base_table);
  if (!empty($this->options['date_fields'])) {
    $output = array();
    foreach ($this->options['date_fields'] as $field) {
      $output[] = $fields['name'][$field]['label'];
    }
    return implode('<br />' . $this->options['date_method'] . ' ', $output);
  }
  else {
    return parent::admin_summary();
  }
}