views:

25

answers:

1

Since it's bad practice to modify drupal_build_css_cache directly ,

does drupal allow overriding this function somehow?

+2  A: 

no, it is not: there is only one call to drupal_build_css_cache() from other Drupal code, and there is nothing "dynamic" there to make that call overrideable.

why do you want to modify drupal_build_css_cache()? what are you trying to achieve? if it is something others might find useful, you might suggest your idea to the Drupal project and try getting it included into core.

ax
Yeah, you can do pretty much anything to the CSS itself before it gets cached without touching that function. And if you really want to change how caching itself works, you need to replace more than that function.
Scott Reynen