(Tutorial) Theming the contact form in Drupal 6
Theming the contact form in Drupal 6
-
The following exercise consists in theming the contact form in Drupal 6. Once we're done, it will look like we'll have created two fall-back-on 'pages' for contact forms, one page/form to 'request a quote' at Randy.com/contact/quote, and an other page/form for general inquiries at Randy.com/contact/info. The trick here — if there's one — consists in theming the contact form differently based on the requested URI.
This exercise will show you how to:- recognize when a module has not registered a specific theming function for a form it generates,
- register a theming function for a Drupal form in your theme, using HOOK_theme,
- work with template suggestions,
- use the Devel module function dsm() to inspect complex variables, such as Drupal forms.
Courtesy : http://11heavens.com
- guru's blog
- Login to post comments
![Drupal-6-Book-[Building Powerful and Robust Websites with Drupal 6].jpg](http://www.drupalranch.com/images/Drupal-6-Book-[Building%20Powerful%20and%20Robust%20Websites%20with%20Drupal%206].jpg)