Closed (won't fix)
Project:
mothership
Version:
7.x-1.7
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
23 Apr 2011 at 22:13 UTC
Updated:
11 May 2013 at 08:12 UTC
Jump to comment: Most recent file
Comments
Comment #1
rwohlebThe issue here is that drupal_add_css() is being used inside hook_css_alter(). This hook gets an array of CSS files that could have already been sent through this hook in other modules. In this case it's LESS. By using drupal_add_css() and having no way to pass the CSS array, it ends up getting reset to what it's in the static cache handled by the drupal_static() function. I've updated the issue title to reflect this.
I see two options. We can either stop using drupal_add_css() inside this hook, or we temporarily change the static cache while we are in this hook. I'm attaching a patch that does the latter. While I don't like the idea of messing with the static cache like this, it's better than doing something like making a virtual copy of the drupal_add_css() function for our own use.
Comment #2
rwohlebSetting this to 'bug report'.
Comment #3
mortendk commentedcan you test it with the latest copy the css file removal code has been rewritten.
btw why dont you use a precompiler like less app / codekit etc ?
Comment #4
mortendk commented