By jflesher on
I know that $head_title is defined in html.tpl.php, but if I define a function its not defined in this file; no idea why; but this is my problem.
What I want to do is define a function or class, in preprocess_page, then its available to page.tpl.php, works fine, but its not available to html.tpl.php; which is the problem; I need to pass in variables before I execute this function; so I can set css and js based on other settings.
I'm trying to fix my D7 theme, it worked during alpha; but now is broke; seems drupal_add_html_head is not working as it did then; any ideas why?
Thanks for any help in converting D6 to D7; or finding any docs that might help.
Comments
Maybe
Maybe template_preprocess_html could help you more ? http://api.drupal.org/api/drupal/includes--theme.inc/function/template_p...
It seems this problem was discussed in the following issue : http://drupal.org/node/579698