Created
April 18, 2016 14:35
-
-
Save leobauza/146089cf6855f2c3d369b4e43951dbd2 to your computer and use it in GitHub Desktop.
JS alter for Zero theme
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 | |
/** | |
* Implements hook_js_alter(). | |
*/ | |
function zero_js_alter(&$js) { | |
$exclude = array( | |
'settings' => FALSE, | |
'misc/jquery.js' => FALSE, | |
'misc/drupal.js' => FALSE, | |
'misc/jquery.once.js' => FALSE, | |
); | |
$js = array_diff_key($js, $exclude); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment