Created
September 26, 2012 14:50
-
-
Save driesdelaey/3788487 to your computer and use it in GitHub Desktop.
update jquery for frontend only
This file contains hidden or 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
/** | |
* UPDATE JQUERY FOR FRONTEND ONLY | |
*/ | |
function MYTHEME_js_alter(&$javascript) { | |
// Swap out jQuery to use an updated version of the library. | |
$javascript['misc/jquery.js']['data'] = drupal_get_path('theme', 'MYTHEME').'/js/jquery-1.7.2.min.js'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
edit: added drupal_get_path; otherwise you get errors when compressing JS files