Skip to content

Instantly share code, notes, and snippets.

@hamstarr
hamstarr / gist:1285508
Created October 13, 2011 20:59 — forked from willmcneilly/gist:1284697
Hackety hack
/**
* Implementation of moduleName_preprocess_hook().
*
* Replace Drupal core's jquery.js with the new one from jQuery Update module.
*/
function jquery_update_preprocess_page(&$variables) {
// Only do this for pages that have JavaScript on them.
if (!empty($variables['scripts'])) {
// Perform the logic if either jQuery Update's jquery.js is newer than