It just includes simple event actions for menus, and I don't want to edit the theme/module files.
Or do I have to just add the "include" hook to the theme/module?
Drupal Answers is a question and answer site for Drupal developers and administrators. It only takes a minute to sign up.Sign up to join this community
Mechaflash. In order to make the theme folder "more organized", generally people create a dedicated
You can do all of this using the drupal_add_js() function. Here are some examples of how to add a JS file from a module:
The easiest way is in your theme .info file.
You just need to add scripts = myscript.js in to the .info file of the theme you are using.