Drupal

Override template.php in Drupal

29
Nov
2007
Saved under:

Do you want to override template.php in Drupal, say to produce a custom administration theme? If so, boy do I have a treat for you. This technique involves using the '_phptemplate_variables()' function. Say, for example, you have created a new template page named 'page-admin.tpl.php'. You want pages who's URL ends in '/admin', '/tracker', '/node/add', '/node/edit' and any sub paths from those to use the new template page. The following code would accomplish your mission:

User login

Contacting Rob

Y! roberthenrylowe
AIM roberthenrylowe
ICQ 249971225
email rhlowe [at] gmail dot com

Networking Links