Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The attached patch takes the processing of the $script
array and moves it into its own function. This makes it possible to perform the jquery replacement from another function, rather than just during the page preprocess. The net gain is that it becomes possible to do a batch of script changes (from some other piece of code) without continually clobbering $variables['scripts']
.
Patch attached.
Comment | File | Size | Author |
---|---|---|---|
#2 | jquery_update_replace_external.patch | 7.02 KB | btully |
#1 | jquery_update.module.20101006.patch | 2.85 KB | mbutcher |
Comments
Comment #1
mbutcher CreditAttribution: mbutcher commentedLet's try attaching that patch again, shall we?
Comment #2
btully CreditAttribution: btully commentedHere's a patch that expands on Matt's great patch and also includes option for external (Google) hosting of jquery. Admin settings allow you to specify certain paths (e.g., admin/*, node/*/edit, node/*/add) that you want to fallback to local/stable jquery.
Comment #3
markhalliwellDrupal 6 reached EOL (end-of-life) on February 24, 2016.