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.
The default value of the group key in drupal_add_css's $options argument isn't specified in the documentation; you must read the code to discover the default value (CSS_DEFAULT).
Comment | File | Size | Author |
---|---|---|---|
#2 | css-default-1480570-2.patch | 706 bytes | Gaelan |
Comments
Comment #1
jhodgdonSounds like a good novice project.
Needs to be added to D8 first, then backported to D7.
drupal_add_css() docs
http://drupal.org/node/1354#lists - page showing how to put defaults in lists
Comment #2
Gaelan CreditAttribution: Gaelan commentedHere's the patch.
Comment #3
Gaelan CreditAttribution: Gaelan commentedWhoops. Forgot to set status.
Comment #4
jhodgdonLooks good! I'll commit this later or tomorrow if no one beats me to it. Thanks!
Comment #5
jhodgdonCommitted to 8.x and 7.x. Thanks for taking this all the way through from reporting to patch!