You are here

public function views_handler_sort::sort_options in Views (for Drupal 7) 7.3

Same name and namespace in other branches
  1. 6.3 handlers/views_handler_sort.inc \views_handler_sort::sort_options()

Provide a list of options for the default sort form.

Should be overridden by classes that don't override sort_form.

1 call to views_handler_sort::sort_options()
views_handler_sort::show_sort_form in handlers/views_handler_sort.inc
Shortcut to display the value form.

File

handlers/views_handler_sort.inc, line 192
Definition of views_handler_sort.

Class

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

Code

public function sort_options() {
  return array(
    'ASC' => t('Sort ascending'),
    'DESC' => t('Sort descending'),
  );
}