function views_handler_sort::admin_summary

cis7 views_handler_sort.inc views_handler_sort::admin_summary()
cle7 views_handler_sort.inc views_handler_sort::admin_summary()
elmsmedia7 views_handler_sort.inc views_handler_sort::admin_summary()
icor7 views_handler_sort.inc views_handler_sort::admin_summary()
meedjum_blog7 views_handler_sort.inc views_handler_sort::admin_summary()
mooc7 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

sites/all/modules/ulmus/views/handlers/views_handler_sort.inc, line 51
@todo.

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;
  }
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.