Skip to content

Instantly share code, notes, and snippets.

@leobauza
Created April 18, 2016 14:35
Show Gist options
  • Save leobauza/146089cf6855f2c3d369b4e43951dbd2 to your computer and use it in GitHub Desktop.
Save leobauza/146089cf6855f2c3d369b4e43951dbd2 to your computer and use it in GitHub Desktop.
JS alter for Zero theme
<?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