In a previous entry, we took a look at modifying the date field for a custom form. In this post, we will look at how to define our own form elements inside of Drupal, with validation and processing, to use in any custom form easily.