Created
November 12, 2014 02:35
-
-
Save cmcintosh/a8e5098d67b111582be9 to your computer and use it in GitHub Desktop.
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 your_theme_js_alter(&$javascript) { | |
global $base_url; | |
$jQuery_version = '1.11.0'; | |
// Local Cached copy > $jQuery_local = $base_url.'/'.drupal_get_path('module', 'my_module').'/jquery-'. $jQuery_version .'.min.js'; | |
$jQuery_cdn = 'http://code.jquery.com/jquery-' . $jQuery_version . '.min.js'; | |
$javascript['misc/jquery.js']['data'] = $jQuery_cdn; | |
$javascript['misc/jquery.js']['version'] = $jQuery_version; | |
$group = $javascript['misc/jquery.js']['group'] = JS_LIBRARY; | |
$weight = $javascript['misc/jquery.js']['weight'] = -20; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment