Drupal 6 API

Drupal Forms API Basics

Drupal Forms API is used to create Drupal-compatible form elements with PHP, mostly from within modules. Saying "Drupal-compatible" we mean, that the code produced will be AHAH/AJAX compatible and will be marked-up in a way that is expected from of Drupal, thus providing code and theming consistency.

Forms are created in functions, each form element being an array. Then, in the right place, the function gets called as an argument of the drupal_get_form function.

Subscribe to RSS - Drupal 6 API