1 form.inc form_process_button($element, &$form_state)

Processes a form button element.

Parameters

$element: An associative array containing the properties and children of the form button.

$form_state: The $form_state array for the form this element belongs to.

Return value

The processed element.:

Related topics

File

core/includes/form.inc, line 3581
Functions for form and batch generation and processing.

Code

function form_process_button($element, &$form_state) {
  // We normally want to add backdrop.form so that the double submit protection
  // can be added to the site.
  $element['#attached']['library'][] = array('system', 'backdrop.form');
  return $element;
}