[development] insert a javascript header
Sean Burlington
sean at burlington.me.uk
Tue Jan 22 12:34:07 UTC 2008
Alex Moreno wrote:
> Hi everybody,
>
> i´m trying to insert a javascript line from a custom module. I´ve seen
> the hook_footer module and it does exactly what i need but not in the
> header section as i need.
>
> a link t some code should be a great help.
>
> thanks a lot in advance.
something like this:
drupal_add_js(
drupal_get_path('module', $modulename).$javascripturl );
http://api.drupal.org/api/function/drupal_add_js
--
Sean Burlington
www.practicalweb.co.uk
London
More information about the development
mailing list