function views_handler_sort::admin_summary
3.x views_handler_sort.inc | views_handler_sort::admin_summary() |
2.x 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 32
Class
- views_handler_sort
- Base sort handler that has no options and performs a simple sort
Code
function admin_summary() {
switch ($this->options['order']) {
case 'ASC':
case 'asc':
default:
$type = t('asc');
break;
case 'DESC':
case 'desc':
$type = t('desc');
break;
}
return '<span class="views-ascending"><span>' . $type . '</span></span>';
}