Drupal Form API

Drupal Form API
Drupal’s form engine takes care of generating HTML for the forms to be displayed and securely processing submitted forms using three phases: validation, submission, and redirection.
//identify the form
$form_id
//describing form
$form
//contains form info
$form_state

validation function
form_id plus _validate
submit function
form_id plus _submit

Alter form before it's built
form_id plus _alter
hook_form_alter

你可能感兴趣的:(html)