You are here

function views_handler_sort::admin_summary in Views (for Drupal 7) 6.3

Same name and namespace in other branches
  1. 6.2 handlers/views_handler_sort.inc \views_handler_sort::admin_summary()
  2. 7.3 handlers/views_handler_sort.inc \views_handler_sort::admin_summary()

Display whether or not the sort order is ascending or descending

Overrides views_handler::admin_summary

File

handlers/views_handler_sort.inc, line 43

Class

views_handler_sort
Base sort handler that has no options and performs a simple sort

Code

function admin_summary() {
  if (!empty($this->options['exposed'])) {
    return t('Exposed');
  }
  switch ($this->options['order']) {
    case 'ASC':
    case 'asc':
    default:
      return t('asc');
      break;
    case 'DESC':
    case 'desc':
      return t('desc');
      break;
  }
}