Drupal 6: best practice for changing contributed module's JavaScript
问题 I've a question about how to customize drupal modules avoiding hacks. Let's say I've downloaded Lightbox2 module and I want to change the javascript file to display differently my lightbox. At the moment I'm modifying the Lightbox2 module, so I cannot update it anymore, so I know it is not the best practice. I was wondering if I can customize the javascript file of this module with a hook, and how. Thanks 回答1: To alter just the JS, you shouldn't need to hack the module at all. Instead, you