Core module before and after examples

Last modified: February 19, 2008 - 03:55

The following examples are taken directly from Drupal core, and illustrate the difference between the previous forms approach and the new forms API. The 'after' examples are notated to further describe some of the salient points of the API. They are arranged in order of difficulty--it's recommended that you go through them in order.

Please note that editorial comments, which call attention to certain aspects of the examples, begin with ###

 
 

Drupal is a registered trademark of Dries Buytaert.