function tmgmt_ui_translation_review_form_validate in Translation Management Tool 7
Validation callback for the job item review form.
File
- ui/
tmgmt_ui.module, line 890 - Common Translation managment UI.
Code
function tmgmt_ui_translation_review_form_validate($form, &$form_state) {
$item = $form_state['item'];
// First invoke the validation method on the source controller.
$source = tmgmt_source_ui_controller($item->plugin);
$source
->reviewFormValidate($form, $form_state, $item);
// Invoke the validation method on the translator controller (if available).
if ($item
->getTranslator()) {
$translator = tmgmt_translator_ui_controller($item
->getTranslator()->plugin);
$translator
->reviewFormValidate($form, $form_state, $item);
}
}