You are here

public function TMGMTFileTranslatorUIController::checkoutSettingsForm in Translation Management Tool 7

Form callback for the checkout settings form.

Overrides TMGMTDefaultTranslatorUIController::checkoutSettingsForm

File

translators/file/tmgmt_file.ui.inc, line 74
Please supply a file description.

Class

TMGMTFileTranslatorUIController
File translator plugin controller.

Code

public function checkoutSettingsForm($form, &$form_state, TMGMTJob $job) {
  if ($job
    ->getTranslator()
    ->getSetting('allow_override')) {
    $form['export_format'] = array(
      '#type' => 'radios',
      '#title' => t('Export to'),
      '#options' => tmgmt_file_format_plugin_labels(),
      '#default_value' => $job
        ->getTranslator()
        ->getSetting('export_format'),
      '#description' => t('Please select the format you want to export data.'),
    );
  }
  return parent::checkoutSettingsForm($form, $form_state, $job);
}