You are here

function jquery_update_flush_caches in jQuery Update 6.2

Same name and namespace in other branches
  1. 6 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 127
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);
}