You are here

function tmgmt_ui_translation_review_form_ajax in Translation Management Tool 7

Ajax callback for the job item review form.

1 string reference to 'tmgmt_ui_translation_review_form_ajax'
_tmgmt_ui_review_form_element in ui/tmgmt_ui.module
Build form elements for the review form using flatened data items.

File

ui/tmgmt_ui.module, line 1013
Common Translation managment UI.

Code

function tmgmt_ui_translation_review_form_ajax($form, &$form_state) {
  $key = array_slice($form_state['triggering_element']['#array_parents'], 0, 2);
  $render_data = drupal_array_get_nested_value($form, $key);
  tmgmt_ui_write_request_messages($form_state['item']
    ->getJob());
  return drupal_render($render_data);
}