/*
From a Lullabot Workshop:
We talked a little about the "best" way to swap out javascript files and the way we've been doing it recently for sites that require 1.2 and higher, you can use this method. For 1.1 only (probably okay for several more months), jQuery Update module is a safe way to go.
This is done within the _phptemplate_variables() function within your theme's template.php file.
*/
<?php
function _phptemplate_variables($hook, $vars) {
if ($hook == 'page') {
// Get the array of scripts for this page
// Remove core jquery.
unset($js_array['header']['misc/jquery.js']);
// Add the newer jquery from your theme directory.
// Restore the $scripts variable for page.tpl.php.
}
}
?>