i 'm trying to add a file to end of body via template.php in mytheme_preprocess_page. this is the line i have:
drupal_add_js(drupal_get_path('theme', 'mytheme') . '/js/file.js',array('type' => 'file','scope' => 'footer'));
why i can't see file.js in view source? -if i change footer scope to header file.js add to head tag -
doc says:
Possible values are 'header' or 'footer'. If your theme implements different regions, you can also use these
i tried to add footer region to page.tpl.php but it doesn't work.
what do means footer scope?