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.
Remove drupal_add_css() from block module page callbacks - use #attached instead.
Meta issue: http://drupal.org/node/1839338
Comment | File | Size | Author |
---|---|---|---|
#1 | 2003564-remove-drupal_add_css.patch | 525 bytes | manarth |
Comments
Comment #1
manarth CreditAttribution: manarth commentedPatch swaps the string return for a render array, and moves drupal_add_css to #attached.
Comment #3
manarth CreditAttribution: manarth commented#1: 2003564-remove-drupal_add_css.patch queued for re-testing.
Comment #4
Wim LeersManually tested, works correctly. Thanks!
Comment #5
catchCommitted/pushed to 8.x, thanks!