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).

CommentFileSizeAuthor
#2 css-default-1480570-2.patch706 bytesGaelan
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jhodgdon’s picture

Title: Clarify the default value of group in drupal_add_css() » Default value of $options['group'] is not shown in drupal_add_css()
Version: 7.9 » 8.x-dev
Category: feature » bug
Issue tags: +Novice, +Needs backport to D7

Sounds 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

Gaelan’s picture

FileSize
706 bytes

Here's the patch.

Gaelan’s picture

Status: Active » Needs review

Whoops. Forgot to set status.

jhodgdon’s picture

Status: Needs review » Reviewed & tested by the community

Looks good! I'll commit this later or tomorrow if no one beats me to it. Thanks!

jhodgdon’s picture

Status: Reviewed & tested by the community » Fixed

Committed to 8.x and 7.x. Thanks for taking this all the way through from reporting to patch!

Automatically closed -- issue fixed for 2 weeks with no activity.