Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Drupal 5 Themes

You're reading from   Drupal 5 Themes Create a new theme for your Drupal website with a clean layout and powerful CSS styling

Arrow left icon
Product type Paperback
Published in Dec 2007
Publisher Packt
ISBN-13 9781847191823
Length 260 pages
Edition 1st Edition
Languages
Tools
Concepts
Arrow right icon
Toc

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...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image