function jquery_update_flush_caches in jQuery Update 6
Same name and namespace in other branches
- 6.2 jquery_update.module \jquery_update_flush_caches()
Implementation of hook_flush_caches().
1 string reference to 'jquery_update_flush_caches'
- jquery_update_settings in ./
jquery_update.module - Admin settings form.
File
- ./
jquery_update.module, line 109 - Updates Drupal to use the latest version of jQuery.
Code
function jquery_update_flush_caches() {
// Find the versions of jQuery provided by core and this module.
$jquery_update_version = jquery_update_get_version();
$jquery_core_version = jquery_update_get_version('misc/jquery.js');
// Set a variable according to whether core's version needs to be replaced.
$replace = version_compare($jquery_core_version, $jquery_update_version, '<');
variable_set('jquery_update_replace', $replace);
}