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