creating new variables for page.tpl.php
raslam - May 28, 2008 - 13:21
Hi,
I m new to drupal and using version 6.2. My firts struggle is with theme section. I am trying to implement a new theme in the system. After reading some articles on theming I have understood some steps in theming. But fully aware of them yet. I have a little idea about HOOK_theme() too at this stage.
Here is a hook that I am using to add a new variable $logo1 that I need to access in page.tpl.php
function epdb_preprocess_page(&$vars, $hook) {
$vars['logo1'] = drupal_get_path('theme', 'epdb') . 'images/logo.gif';
}Is this the correct way. My main purpose is to change the default logo of the themes. Currently the logo.png is set.
Thanks.
Rashid.

Yes, you are doing it
Yes, you are doing it right,
however in .info file you can change the logo though.
__________________________________ ____ ___ __ _ .. .. .
Give a man a fish, and you'll feed him for a day. Teach a man to fish, and he'll buy a funny hat. Talk to a hungry man about fish, and you're a consultant.
- Scott Adams
http://sotak.co.uk