Monthly Archives: May 2012

Quick Tip: Adding a Reset button to a Drupal form

Using hook_form_alter or hook_form_FORM_ID_alter one can easily add a “Reset” button to a Drupal form. In this example we’re actually trying to reset anything the user typed after the form loaded. This will not remove the default values. Here’s a simple example (Drupal 6)

Tagged with: , , , ,
Posted in Development