1 views_handler_field_locale_language.inc views_handler_field_locale_language::options_form(&$form, &$form_state)

Default options form that provides the label widget that all fields should have.

Overrides views_handler_field::options_form

File

core/modules/locale/views/views_handler_field_locale_language.inc, line 21
Definition of views_handler_field_locale_language.

Class

views_handler_field_locale_language
Field handler to translate a language into its readable form.

Code

function options_form(&$form, &$form_state) {
  parent::options_form($form, $form_state);
  $form['native_language'] = array(
    '#title' => t('Native language'),
    '#type' => 'checkbox',
    '#default_value' => $this->options['native_language'],
    '#description' => t('If enabled, the native name of the language will be displayed'),
  );
}