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

Overriding Functions


As discussed in Chapter 3, the themeable functions in Drupal control the HTML formatting for the final display of the contents. You can control the look and feel of the site by modifying the CSS together with the themeable functions. While CSS gives you one level of control over look and feel, to make significant changes to the functionality or the page layout you will need to work with the functions themselves.

The default themeable functions are located in a variety of files inside the distro (see, Chapter 4 for a listing). If your site is using a theme engine, you may also find themeable functions located inside the theme engine directory. Finally, themeable functions may be found inside the active theme's directory.

All themeable functions in a Drupal site can be overridden. As we saw with style sheets, there is a hierarchy at work inside Drupal. The Drupal system will seek out themeable functions in a specific order, and apply the first one it finds.

The themeable...