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.
Sorry, anyone can explain me why is not possible compress codefilter.css file into other CSS?
into code you use:
/**
* Implementation of hook_init()
*
* Adds the codefilter stylesheet to the page
*/
function codefilter_init() {
drupal_add_css(drupal_get_path('module', 'codefilter') .'/codefilter.css', 'module', 'all', FALSE);
}
i change it into:
/**
* Implementation of hook_init()
*
* Adds the codefilter stylesheet to the page
*/
function codefilter_init() {
drupal_add_css(drupal_get_path('module', 'codefilter') .'/codefilter.css', 'module', 'all', TRUE);
}
and file is compress, this can cause some problem?
Comment | File | Size | Author |
---|---|---|---|
#7 | 358881-7-css_aggregation-fix.patch | 504 bytes | j0rd |
Comments
Comment #1
JohnAlbinThat definitely sounds like a bug.
Comment #2
gausarts CreditAttribution: gausarts commentedHi,
I confirm that it refuses to be aggregated. Thanks
Comment #3
Dane Powell CreditAttribution: Dane Powell commentedI don't think a patch is required, but can this be addressed? It's just a matter of changing FALSE to TRUE...
Comment #4
corbacho CreditAttribution: corbacho commentedIt's even simpler. It's a matter of removing "FALSE". The default option is TRUE for that argument.
Comment #5
Dane Powell CreditAttribution: Dane Powell commentedComment #6
Dane Powell CreditAttribution: Dane Powell commentedThis project (at least the 6.x branch) seems pretty dead. I wonder if we should start the abandoned project process?
Comment #7
j0rd CreditAttribution: j0rd commentedI need this issue resolved for Drupal 6. And if by dead you mean 100x the active installs than D7, then yes it's "dead" :)
Anyways, here's a patch.
Comment #8
JohnAlbinAgreed. See #1818470: Find a new maintainer
This issue was actually fixed in #606036: Allow aggregation of CSS file in October 2009.