Last active
December 21, 2015 05:19
-
-
Save tmsss/6256477 to your computer and use it in GitHub Desktop.
Drupal preprocess function for use a more recent version of jQuery in Drupal (without jQuery Update) (http://chipcullen.com/how-to-use-a-more-recent-version-of-jquery-in-drupal)
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
| function THEMENAME_js_alter(&$javascript) { | |
| $javascript['misc/jquery.js']['data'] = drupal_get_path('theme', 'THEMENAME') . | |
| '/javascripts/jquery-1.7.2.min.js'; | |
| $javascript['misc/jquery.js']['version'] = '1.7.2'; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment