public function TMGMTTestTranslatorUIController::pluginSettingsForm in Translation Management Tool 7
Form callback for the plugin settings form.
Overrides TMGMTDefaultTranslatorUIController::pluginSettingsForm
File
- tests/
tmgmt_test.ui.translator.inc, line 13 - Contains the test translator UI plugin.
Class
- TMGMTTestTranslatorUIController
- @file Contains the test translator UI plugin.
Code
public function pluginSettingsForm($form, &$form_state, TMGMTTranslator $translator, $busy = FALSE) {
$form['expose_settings'] = array(
'#type' => 'checkbox',
'#title' => t('Display settings'),
'#default_value' => TRUE,
);
$form['action'] = array(
'#type' => 'select',
'#title' => t('Default action'),
'#options' => array(
'translate' => t('Translate'),
'submit' => t('Submit'),
'reject' => t('Reject'),
'fail' => t('Fail'),
'not_translatable' => t('Not translatable'),
),
);
return parent::pluginSettingsForm($form, $form_state, $translator, $busy);
}