O'Reilly logo

Drupal 6 Theming Cookbook by Karthik Kumar

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

Chapter 9. Form Design

We will be covering the following recipes in this chapter:

  • Finding the form ID of a form
  • Changing the height of a textarea
  • Turning off the resize feature for textareas
  • Replacing Drupal's textareas with a WYSIWYG-HTML editor
  • Reordering fields in a form
  • Replacing a standard submit button with an image button
  • Styling the comment form
  • Using a fieldset to group fields
  • Theming form elements
  • Adding class attributes to form elements

Introduction

Forms are an integral part of just about every site and Drupal provides a powerful interface to create and manipulate them through its Form API. The API abstracts the process of creating and managing complex forms, and standardizes the process with implicit importance placed upon security and reusability. ...

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