function tmgmt_smartling_tmgmt_job_edit_form_validate in TMGMT Translator Smartling 8.3
Same name and namespace in other branches
- 8.4 tmgmt_smartling.module \tmgmt_smartling_tmgmt_job_edit_form_validate()
Validate tmgmt_smartling checkout job form.
Parameters
array $form:
\Drupal\Core\Form\FormStateInterface $form_state:
1 string reference to 'tmgmt_smartling_tmgmt_job_edit_form_validate'
File
- ./
tmgmt_smartling.module, line 400 - Contains
Code
function tmgmt_smartling_tmgmt_job_edit_form_validate(array &$form, FormStateInterface $form_state) {
switch ($form_state
->getValue('settings')['switcher']) {
case TMGMT_SMARTLING_CREATE_JOB:
tmgmt_smartling_create_job_form_validate($form, $form_state);
break;
case TMGMT_SMARTLING_ADD_TO_JOB:
tmgmt_smartling_add_to_job_form_validate($form, $form_state);
break;
}
}