1 views_handler_sort.inc views_handler_sort::show_sort_form(&$form, &$form_state)

Shortcut to display the value form.

File

core/modules/views/handlers/views_handler_sort.inc, line 164
@todo.

Class

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

Code

function show_sort_form(&$form, &$form_state) {
  $options = $this->sort_options();
  if (!empty($options)) {
    $form['order'] = array(
      '#type' => 'radios',
      '#options' => $options,
      '#default_value' => $this->options['order'],
    );
  }
}