Working with Forms and Creating Custom Forms
To be really, really good in your role as a Drupal programmer, you’ll need some tricks up your sleeve. You’ll need to be able to programmatically create nodes, alter forms, and create custom forms. This chapter is dedicated to these subjects so you can really give your customers what they want.
Using the Form API
Let’s start with forms and Form API. The Form API is a reference to the code needed to create forms programmatically in Drupal. The Form API itself is much the same as it was in Drupal 7, but all the code needs to be contained within the new object-oriented framework. This means ...