Book Image

Drupal 5 Themes

Book Image

Drupal 5 Themes

Overview of this book

Drupal is an award winning open source Content Management System. Based on PHP/MySQL, its power and flexibility combined with its exceptional design mean it is already on the way to becoming the de facto standard for CMS Websites. Drupal?¢‚Ǩ‚Ñ¢s modular design and structured source code make it both highly flexible and easily extended and modified. Drupal is extremely scalable, making it ideal for both a simple personal website as well as an industrial strength commercial or institutional web presence.Drupal is a model open source project in that it has a large, friendly community of people who contribute to the project in various ways. Drupal is not only free and easy to use, but this community provides on going mutual support.
Table of Contents (14 chapters)
Drupal 5 Themes
Credits
About the Author
About the Reviewer
Preface
Appendix A

Common Form Issues


In this section, we look at areas of common concern with forms, that is, how to change the text information associated with the default forms, how to alter the styling of forms, and how to use images for form buttons. In the process, we compare and contrast the different approaches introduced earlier and note some special issues.

Modifying Data Labels and Other Text

One of the most commonly requested form modifications is the ability to change the data labels and explanatory text built into the default forms. There are several alternative ways to modify the text elements. The choice of which technique to apply depends largely on the number of changes you wish to make and degree to which you will need to be able to administer the text through the admin interface.

Using form_alter()

As we saw earlier in this chapter, you can create a custom module and use form_alter to make changes to one or more forms. This approach is very useful where you want to make changes across several...