Created
November 29, 2013 04:09
-
-
Save m7v/7701468 to your computer and use it in GitHub Desktop.
Hook_css_alter
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
/** | |
* Implements hook_css_alter(). | |
*/ | |
function wd_site_css_alter(&$css) { | |
$exclude = array( | |
'modules/aggregator/aggregator.css' => FALSE, | |
'modules/block/block.css' => FALSE, | |
'modules/book/book.css' => FALSE, | |
'modules/comment/comment.css' => FALSE, | |
'modules/dblog/dblog.css' => FALSE, | |
'modules/file/file.css' => FALSE, | |
'modules/filter/filter.css' => FALSE, | |
'modules/forum/forum.css' => FALSE, | |
'modules/help/help.css' => FALSE, | |
'modules/menu/menu.css' => FALSE, | |
'modules/node/node.css' => FALSE, | |
'modules/openid/openid.css' => FALSE, | |
'modules/poll/poll.css' => FALSE, | |
'modules/search/search.css' => FALSE, | |
'modules/statistics/statistics.css' => FALSE, | |
'modules/syslog/syslog.css' => FALSE, | |
'modules/system/maintenance.css' => FALSE, | |
'modules/system/system.maintenance.css' => FALSE, | |
'modules/system/system.menus.css' => FALSE, | |
'modules/system/system.messages.css' => FALSE, | |
'modules/system/system.theme.css' => FALSE, | |
'modules/taxonomy/taxonomy.css' => FALSE, | |
'modules/tracker/tracker.css' => FALSE, | |
'modules/update/update.css' => FALSE, | |
'modules/user/user.css' => FALSE, | |
'modules/profile/profile.css' => FALSE, | |
'modules/system/admin.css' => FALSE, | |
'modules/system/system.css' => FALSE, | |
'modules/system/system.admin.css' => FALSE, | |
'misc/vertical-tabs.css' => FALSE, | |
'modules/system/system.base.css' => FALSE,*/ | |
); | |
$css = array_diff_key($css, $exclude); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment