一般都是由drupal_get_form调用的:
- Starts the entire form-building process by getting the
$form from the builder function
- Translates the
$form['name'] items into actual form elements
- Performs any validation and "clean-up" that needs to be done, and calls custom validation functions if declared
- Submits the form if a submit function is declared, and the form has been submitted
- Calls any custom theming functions that have been declared
- Returns an HTML string which contains the actual form.
(source)
其中的submit function一般是[form_id]_submit,更多细节参考includes/form.inc