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.
There is a suggestion to use drupal_add_js() to conditionally add js to the theme. I lazily copy-pasted that and realized that the path to the js-file is not from the root of the site as it should be.
Patch for both D6 and D6 that adds a drupal_get_path() to the suggestion.
Comment | File | Size | Author |
---|---|---|---|
add_js-instructions-D7.patch | 657 bytes | naxoc | |
add_js-instructions-D6.patch | 619 bytes | naxoc |
Comments
Comment #1
barraponto CreditAttribution: barraponto commentedPatches apply cleanly. Thanks.
Comment #2
JohnAlbinThanks, Camilla!
(And thanks Capi for the review!)