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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mbutcher’s picture

Let's try attaching that patch again, shall we?

btully’s picture

Here'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.

markhalliwell’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Drupal 6 reached EOL (end-of-life) on February 24, 2016.