function tmgmt_ui_translation_review_form in Translation Management Tool 7
Form callback for the job item review form.
See also
1 string reference to 'tmgmt_ui_translation_review_form'
- tmgmt_ui_forms in ui/
tmgmt_ui.module - Implements hook_forms().
File
- ui/
tmgmt_ui.module, line 875 - Common Translation managment UI.
Code
function tmgmt_ui_translation_review_form($form, &$form_state, TMGMTJobItem $item) {
// Give the source ui controller a chance to affect the review form.
$source = tmgmt_source_ui_controller($item->plugin);
$form = $source
->reviewForm($form, $form_state, $item);
// Give the translator ui controller a chance to affect the review form.
if ($item
->getTranslator()) {
$translator = tmgmt_translator_ui_controller($item
->getTranslator()->plugin);
$form = $translator
->reviewForm($form, $form_state, $item);
}
return $form;
}