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.
[b]validation function[/b]
form_id plus _validate
[b]submit function[/b]
form_id plus _submit
[b]Alter form before it's built[/b]
form_id plus _alter
hook_form_alter
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
[b]validation function[/b]
form_id plus _validate
[b]submit function[/b]
form_id plus _submit
[b]Alter form before it's built[/b]
form_id plus _alter
hook_form_alter