This file contains 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
/** | |
* 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 |