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 can add new hook: hook_alter_css_data() (or hook_alter_css_contents()).
Then in drupal_load_stylesheet_content() add call to drupal_alter('css_data', $contents);
This might be useful when we want to change CSS images in url() to sprites or use data URI schemes in some external module.
The same should be done for javascripts.
Comments
Comment #1
stephencamilo CreditAttribution: stephencamilo as a volunteer commentedComment #2
hestenetReset issue status.