Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Note: The following tutorial assumes that your are developing your own module and that you have at least a passing familiarity with Drupal's Form API.
Buttons Up and Down
In most cases and environments, form buttons remain the most elegant and practical way for a user to interact quickly with the data that is displayed in a browser window. Drupal's Form API provides three (3) types of buttons: submit, button and image_button.