O'Reilly logo

Drupal 7 Themes by Ric Shreves

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Modifying forms

There are six different techniques used to modify the appearance of Drupal forms. Depending on the circumstances, you can:

  1. Work with the existing CSS styling.
  2. Modify the page or block holding the form.
  3. Override a default template associated with the form.
  4. Override a theme function related to the form.
  5. Convert the function that generates the form into a template.
  6. Modify the form with a custom module.

Of those six techniques, the first two are the most limited, as they do not involve changing the form output by itself. The third technique, overriding the default template associated with the form, is useful, but limited by the fact that not all the forms are the subject of existing templates.

Of the six, the last three techniques are the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required