drupal_prepare_form

Related topics

Namesort iconDescription
Form generationFunctions to enable the processing and display of HTML forms.

Functions that call drupal_prepare_form()

Namesort iconLocationDescription
drupal_get_formincludes/form.incRetrieves a form from a builder function, passes it on for processing, and renders the form or redirects to its destination as appropriate. In multi-step form scenarios, it handles properly processing the values using the previous step's form...
drupal_prepare_formincludes/form.incPrepares a structured form array by adding required elements, executing any hook_form_alter functions, and optionally inserting a validation token to prevent tampering.
drupal_process_formincludes/form.incThis function is the heart of form API. The form gets built, validated and in appropriate cases, submitted.

Functions called by drupal_prepare_form()

Namesort iconLocationDescription
drupal_get_tokenincludes/common.incGenerate a token based on $value, the current user session and private key.
drupal_prepare_formincludes/form.incPrepares a structured form array by adding required elements, executing any hook_form_alter functions, and optionally inserting a validation token to prevent tampering.
form_builderincludes/form.incAdds some required properties to each form element, which are used internally in the form API. This function also automatically assigns the value property from the $edit array, provided the element doesn't already have an assigned value.
form_clean_idincludes/form.incRemove invalid characters from an HTML ID attribute string.
module_implementsincludes/module.incDetermine which modules are implementing a hook.
_element_infoincludes/form.incRetrieve the default properties for the defined element type.
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.