Hello Everyone. I am new to drupal. I want to ask, when adding jquery plugins required by certain modules, in which file should i include the following piece of code so that the scrict is reconized by all of the Drupal components, from the administrative pages to the site pages themselves?

<?php
include('sites/all/libraries/jquery.ad-gallery.js');
include(
'sites/all/libraries/jquery.ad-gallery.pack.js');
include(
'sites/all/libraries/jquery.cycle.all.min.js');
?>

Comments

_

I'm not sure I understand the question-- if a module requires a plugin, it should also contain the instructions necessary to install it (these days that usually involves just placing the plugin in sites/all/libraries/pluginname) and the module will take care of loading the js when necessary.

If creating a module yourself, you would use drupal_add_js

_
Don't be a Help Vampire - read and abide the forum guidelines.
If you find my assistance useful, please pay it forward to your fellow drupalers.

in the code snipet above, is

in the code snipet above, is the syntax and all correct? if it is, where should i put it? in which file?

What are you trying to do?

What are you trying to do?

Interested in hiring us? jaypan.com

i want to implement that js

i want to implement that js for the gallery, forgive me for being a pain i am a bit new to this

nobody click here