FALSE, 'bool' => TRUE); return $options; } public function buildOptionsForm(&$form, &$form_state) { parent::buildOptionsForm($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'), ); } function render($values) { // @todo: Drupal Core dropped native language until config translation is // ready, see http://drupal.org/node/1616594. $value = $this->get_value($values); $language = language_load($value); return $language ? $language->name : ''; } }