You are here

public function views_handler_sort_node_language::show_sort_form in Views (for Drupal 7) 7.3

Shortcut to display the value form.

Overrides views_handler_sort::show_sort_form

File

modules/locale/views_handler_sort_node_language.inc, line 99
Contains .

Class

views_handler_sort_node_language
Sort handler that allows sorting on a specific language.

Code

public function show_sort_form(&$form, &$form_state) {
  parent::show_sort_form($form, $form_state);
  $form['language'] = array(
    '#type' => 'radios',
    '#title' => t("Specific language"),
    '#description' => t("Choose which specific language to sort by. Not to be confused with the 'Language' sort handler, which sorts by language."),
    '#options' => $this
      ->get_language_options(),
    '#default_value' => $this->options['language'],
  );
}