Skip to content

Instantly share code, notes, and snippets.

@Soraph
Created September 17, 2013 15:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Soraph/6596301 to your computer and use it in GitHub Desktop.
Save Soraph/6596301 to your computer and use it in GitHub Desktop.
Removing CSS in Drupal 7 with hook_css_alter(&$css)
<?php
function yourtheme_css_alter(&$css){
$to_be_removed = array('sites/all/modules/example_module/styles/example_module_css.css' => FALSE,);
$css = array_diff_key($css,$to_be_removed);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment