Overriding Theme Functions
Overriding theme functions is very similar to overriding template files. The main difference is that you are working with functions, and your overridden theme functions all reside in
template.php. The steps involved in overriding a theme function are as follows:
- Find the original theme function by browsing through Drupal’s source code or checking http://api.drupal.org.
- Copy and paste it into your
- Change the beginning of the function name from
template.php, clear the site cache, and reload!