function views_handler_sort::admin_summary

Display whether or not the sort order is ascending or descending.

Overrides views_handler::admin_summary

1 call to views_handler_sort::admin_summary()
views_handler_sort_node_language::admin_summary in modules/locale/views_handler_sort_node_language.inc
Display whether or not the sort order is ascending or descending.
1 method overrides views_handler_sort::admin_summary()
views_handler_sort_node_language::admin_summary in modules/locale/views_handler_sort_node_language.inc
Display whether or not the sort order is ascending or descending.

File

handlers/views_handler_sort.inc, line 56

Class

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

Code

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