Theming Forms in Drupal 7

Theming the Contact Form
$11.95

Matt Haughey (MetaFilter) once said, “Forms are tedious, confusing, often poorly designed, and most people equate their use with things like paying taxes.” In this workbook, you will learn how to alter Drupal’s forms so that their purpose is obvious and they are easy to use. Most Drupal themes focus their styles and manipulations on the customization of content, not input forms. As a themer, you may have created a page template and perhaps individual node templates for each of your content types. Forms are often overlooked by themers because the code seems complicated and the forms are “good enough” that the hassle of learning how to code them does not seem to be worth the trouble. This workbook will help transform your forms from “good enough” to “elegant and easy to use.”

Contents

  • Introduction to Drupal Web Forms
  • Manipulating Drupal Forms
  • Form Toolkit
  • Altering Text with String Overrides
  • Downloading Form Submissions with Webform
  • Styling Forms With CSS
  • Altering Form Wrappers
  • Altering Form Elements with PHP
  • Building Drupal Forms
  • Just Enough PHP
  • Altering Public Forms with hook_form_alter
  • Altering Administrative Forms with hook_form_alter
  • Altering Form Elements With Theme Functions

About

This workbook is:

  • Based on Chapter 6 of Front End Drupal, but has been updated for Drupal 7. If you loved Front End Drupal, you will love this workbook!
  • Included in the Site Building Extravaganza program. If you are registered in the SBE program, you already have this workbook.
  • Available for immediate download in PDF format.
  • Only available in PDF format.