Created
September 17, 2013 15:53
-
-
Save Soraph/6596301 to your computer and use it in GitHub Desktop.
Removing CSS in Drupal 7 with hook_css_alter(&$css)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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