Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have created this module: https://github.com/vih/vih_pwi. It declares hook_libraries_info() like this: https://github.com/vih/vih_pwi/blob/7.x-1.x/vih_pwi.module#L27
However, when using it on a page, it tries to fetch the js from /sites/all/modules/vih_pwi/js/ directory instead of the libraries directory. This can be seen on https://vies.dk/billeder
I have enabled AdvAgg. I do not know whether that has anything to do with anything.
Comments
Comment #1
lsolesen CreditAttribution: lsolesen commentedComment #2
lsolesen CreditAttribution: lsolesen commentedJust to fix the production site, I copied the js code to the module directory. But that seems a little odd :)
Comment #3
tstoecklerThat library definition uses "integration files" which are always loaded from the module itself. The library files itself should not.