Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
<?php
/**
* Implementation of hook_css_alter().
*/
function hook_css_alter(&$css) {
// For each item, don't allow preprocessing to disable @import.
foreach ($css as &$item) {
if (file_exists($item['data'])) {
$item['preprocess'] = FALSE;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment