ARCHIVE - Overview of Basic Form Creation in Drupal 6.x
Last modified: May 7, 2009 - 20:10
Basic form creation requires simply calling the function drupal_get_form with the name of a function that will define the form (as a structured array.) The next page in this guide begins the basics of describing how this structured array is written.
Calling drupal_get_form() starts a chain of steps which will be explained in greater detail in the course of this guide. In short, this function acts as both form processor and form renderer, meaning that it contains steps that check if the form has been submitted as well as to render the form (both if it has and it has not been submitted.)
Other steps that the function undertakes are:
- Form validation
- Form manipulations that installed modules want to perform
- Filling in of default values
- Ordering of form elements according to the "weights" set
... and so on.
