function date_views_argument_handler::admin_summary

cis7 date_views_argument_handler.inc date_views_argument_handler::admin_summary()
cle7 date_views_argument_handler.inc date_views_argument_handler::admin_summary()
elmsmedia7 date_views_argument_handler.inc date_views_argument_handler::admin_summary()
icor7 date_views_argument_handler.inc date_views_argument_handler::admin_summary()
meedjum_blog7 date_views_argument_handler.inc date_views_argument_handler::admin_summary()
mooc7 date_views_argument_handler.inc date_views_argument_handler::admin_summary()

Provide text for the administrative summary

Overrides views_handler::admin_summary

File

sites/all/modules/ulmus/date/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();
  }
}