ajax_process_form

  1. drupal
    1. 8
    2. 7
Versions
7 – 8 ajax_process_form($element, &$form_state)

Form element process callback to handle #ajax.

Parameters

$element An associative array containing the properties of the element.

Return value

The processed element.

See also

ajax_pre_render_element()

Related topics

Code

includes/ajax.inc, line 590

<?php
function ajax_process_form($element, &$form_state) {
  $element = ajax_pre_render_element($element);
  if (!empty($element['#ajax_processed'])) {
    $form_state['cache'] = TRUE;
  }
  return $element;
}
?>