You are here

function tmgmt_smartling_tmgmt_job_edit_form_validate in TMGMT Translator Smartling 8.3

Same name and namespace in other branches
  1. 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'
tmgmt_smartling_form_tmgmt_job_edit_form_alter in ./tmgmt_smartling.module
Implements hook_form_FORM_ID_alter().

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;
  }
}