function webform_ajax_callback in Webform Ajax 7
Same name and namespace in other branches
- 7.2 webform_ajax.module \webform_ajax_callback()
AJAX callback for Webform Prev/Next page and Submit buttons.
Returns the new computed webform, unless it has been completed.
1 string reference to 'webform_ajax_callback'
File
- ./
webform_ajax.module, line 144 - Webform AJAX module file.
Code
function webform_ajax_callback($form, &$form_state) {
$output = array();
// If user completed his submission, determine what to do.
if (!empty($form_state['webform_completed']) && empty($form_state['save_draft'])) {
$output = _webform_ajax_callback_completed($form, $form_state);
}
else {
$output = $form;
}
return $output;
}