I’ve got a question about module development that I need some help with.
I’m building a module which needs to have multiple JS files connected to it. The first file, which has the same name as the module works just fine. But the rest of the JS files, attached the same way are being ignored. For example:
function mymodule_init() {
drupal_add_js(drupal_get_path('module', 'mymodule') .'/js/mymodule.js');
drupal_add_js(drupal_get_path('module', 'mymodule2') .'/js/mymodule2.js');
}
I’m not sure what I’m doing wrong, if anyone has a suggestion or can point me to some documentation it would be appreciated.
Thanks Stephanie