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.
We now allow JavaScript files to be altered via hook_js_alter. CSS files should have a similar mechanism via hook_css_alter. This is an important companion to hook_js_alter. For example, many jQuery plugins have accompanying css files. If we alter the use from one version of a plugin to another we may, also, need to alter the css file being used by the plugin.
Comments
Comment #1
RobLoachYay! #92877: Add numeric weight to drupal_add_css will help.
Comment #2
Owen Barton CreditAttribution: Owen Barton commentedSubscribe
Comment #3
RobLoachIt has seemed to be merged into this issue: #92877: Add numeric weight to drupal_add_css