Skip to content

Instantly share code, notes, and snippets.

@courgette
Created April 2, 2013 13:06
Show Gist options
  • Save courgette/5292061 to your computer and use it in GitHub Desktop.
Save courgette/5292061 to your computer and use it in GitHub Desktop.
Hook_css_alter custom
function theme_css_alter(&$css) {
// Css Not allowed for theming
$not_allowed_css = array(
'modules/system/system.base.css',
'modules/system/system.menus.css',
'modules/system/system.messages.css',
'modules/system/system.theme.css',
'sites/all/modules/contrib/ctools/css/ctools.css',
);
foreach ($css as $css_filename => $css_settings) {
if (in_array($css_filename, $not_allowed_css)) {
unset($css[$css_filename]);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment