/**
  * Overrides EntityReference_SelectionHandler_Generic::settingsForm().
  * 0 = Makes the filtering configurable. Either show all terms (filtered on
  * interface language) or show only those terms with the same language as the
  * referencing (parent) node.
  */
 public static function settingsForm($field, $instance)
 {
     $form = parent::settingsForm($field, $instance);
     $form['filter']['language'] = array('#type' => 'select', '#title' => t('Language handling'), '#options' => array(0 => t('Select all terms matching with the interface language'), 1 => t('Select only terms matching the parent\'s language')), '#default_value' => isset($field['settings']['handler_settings']['filter']['language']) ? $field['settings']['handler_settings']['filter']['language'] : 0);
     return $form;
 }