public function TMGMTDefaultTranslatorUIController::checkoutSettingsForm in Translation Management Tool 7
Form callback for the checkout settings form.
Overrides TMGMTTranslatorUIControllerInterface::checkoutSettingsForm
1 call to TMGMTDefaultTranslatorUIController::checkoutSettingsForm()
- TMGMTFileTranslatorUIController::checkoutSettingsForm in translators/
file/ tmgmt_file.ui.inc - Form callback for the checkout settings form.
3 methods override TMGMTDefaultTranslatorUIController::checkoutSettingsForm()
- TMGMTFileTranslatorUIController::checkoutSettingsForm in translators/
file/ tmgmt_file.ui.inc - Form callback for the checkout settings form.
- TMGMTLocalTranslatorUIController::checkoutSettingsForm in translators/
tmgmt_local/ includes/ tmgmt_local.plugin.ui.inc - Form callback for the checkout settings form.
- TMGMTTestTranslatorUIController::checkoutSettingsForm in tests/
tmgmt_test.ui.translator.inc - Form callback for the checkout settings form.
File
- plugin/
tmgmt.ui.translator.inc, line 65
Class
- TMGMTDefaultTranslatorUIController
- Default ui controller class for translator plugins.
Code
public function checkoutSettingsForm($form, &$form_state, TMGMTJob $job) {
if (!element_children($form)) {
$form['#description'] = t("The @translator translator doesn't provide any checkout settings.", array(
'@translator' => $job
->getTranslator()
->label(),
));
}
return $form;
}