1 ajax_forms_test.module ajax_forms_test_validation_form_callback($form, $form_state)

Ajax callback for the 'driver_text' element of the validation form.

File

core/modules/simpletest/tests/ajax_forms_test.module, line 474
Simpletest mock module for Ajax forms testing.

Code

function ajax_forms_test_validation_form_callback($form, $form_state) {
  backdrop_set_message("ajax_forms_test_validation_form_callback invoked");
  $replacements = array(
    '%driver_text' => $form_state['values']['driver_text'],
    '%spare_required_field' => $form_state['values']['spare_required_field'],
  );
  backdrop_set_message(t("Callback: driver_text=%driver_text, spare_required_field=%spare_required_field", $replacements));
  return '<div id="message_area">ajax_forms_test_validation_form_callback at ' . date('c') . '</div>';
}