hi

im trying to find out how to place an javascipt to the footer region

drupal_add_js( $scriptpath .'myscript.js','module','footer');

hm. footer is defined as an region und there is an $footer variable in my page.tpl.php

what am i missing ?

thanks

Comments

dvessel’s picture

That footer option is misleading. It doesn't actually go into a region. Rather, it's taken from theme_closure() which ends up as the "$closure" variable inside the theme.

http://api.drupal.org/api/function/theme_closure/5