You are here

public function TMGMTLocalTranslatorUIController::pluginSettingsForm in Translation Management Tool 7

Form callback for the plugin settings form.

Overrides TMGMTDefaultTranslatorUIController::pluginSettingsForm

File

translators/tmgmt_local/includes/tmgmt_local.plugin.ui.inc, line 69
Provides the user translator UI plugin controller.

Class

TMGMTLocalTranslatorUIController
Local translator plugin UI controller.

Code

public function pluginSettingsForm($form, &$form_state, TMGMTTranslator $translator, $busy = FALSE) {
  $form['allow_all'] = array(
    '#title' => t('Allow translations for enabled languages even if no translator has the necessary capabilities'),
    '#type' => 'checkbox',
    '#default_value' => $translator
      ->getSetting('allow_all'),
  );
  return $form;
}