The template file html.tpl.php has access to the $scripts variable, which is not initialized in template_preprocess_html(). I have also looked at template_preprocess(), and template_process(), but neither of those functions initialize $scripts.


Here you go: template_process_html().

| improve this answer | |
  • They forgot to add a link to that function, in the documentation for html.tpl.php. Thank you. – kiamlaluno May 6 '11 at 5:21
  • feel free to post a patch :p – Daniel Wehner May 6 '11 at 5:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.