I've recently encountered an issue because drupal_alter() builds an array of hook alter implementations without considering the weights of themes.

I have a simple module that needs to use hook_css_alter() to override the output that a theme's implementation of hook_css_alter() creates. Unfortunately, because drupal_alter() processes modules first (by weight) and then themes next, themes' hook implementations are always processed last (or at least it seems that way).

Currently, it seems, there's no way for me to use a module to alter the CSS created/added from within bootstrap_css_alter().

If this is by-design, is there any way for me to overcome the issue?

CommentFileSizeAuthor
Screenshot_2015-08-10_15-48-36.png.png201.85 KBagileadam

Comments

agileadam created an issue. See original summary.

Version: 7.38 » 7.x-dev

Core issues are now filed against the dev versions where changes will be made. Document the specific release you are using in your issue comment. More information about choosing a version.

Status: Needs work » Closed (outdated)

Automatically closed because Drupal 7 security and bugfix support has ended as of 5 January 2025. If the issue verifiably applies to later versions, please reopen with details and update the version.