By jjkiesch on
i've got a module that does about 95% of what i want to do but to get that last 5, i'll need to do some tweaking.
what i need to change is in the javascript included with the module and in an effort to not hack the module itself, i would like to just override the file in my theme. i added scripts[] = 'modulejs.js' but all it is doing is including both files now. is there a way to remove the one provided by the module so i can use my own?
Comments
Well, it isn't an option yet, but in D7
This hook looks like it will do the trick for you - http://api.drupal.org/api/function/hook_js_alter/7
Can with the jsalter module
See http://drupal.org/project/jsalter
--
Sammy Spets
Synerger Pty Ltd
http://synerger.com
Nice. That's one reason I
Nice. That's one reason I keep up on the forums, is to pick up new info even when it's not relevant to me at the time. I had no idea about that module, but it's definitely going to help in the future.
Contact me to contract me for D7 -> D10/11 migrations.
Change Weight Of module JS file
Hi there are many way to override js file.
One of the way is to decrease module js file weigt
how to do that i have explain here
---
The domain used from the link doesn't exist anymore.