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 need to be able to specify the scope (header, footer, etc.) of a particular library file. In my case I need to ensure that a particular file renders in .
Comments
Comment #1
lpeabody CreditAttribution: lpeabody commentedComment #2
lpeabody CreditAttribution: lpeabody commentedComment #3
tstoecklerYou can specify the scope of a file (just like any other drupal_add_js/css() option) together with your files declaration. I.e.