function ajax_process_form

ajax_process_form($element, &$form_state)

Form element processing handler for the #ajax form property.

Parameters

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

Return value

The processed element.

See also

ajax_pre_render_element()

Related topics

File

includes/ajax.inc, line 643
Functions for use with Drupal's Ajax framework.

Code

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

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!ajax.inc/function/ajax_process_form/7.x