You are here

function jquery_update_jquery_path in jQuery Update 6

Same name and namespace in other branches
  1. 6.2 jquery_update.module \jquery_update_jquery_path()

Return the path to the jQuery file.

1 call to jquery_update_jquery_path()
jquery_update_get_version in ./jquery_update.module
Return the version of jQuery that is installed.

File

./jquery_update.module, line 159
Updates Drupal to use the latest version of jQuery.

Code

function jquery_update_jquery_path() {
  $jquery_file = array(
    'none' => 'jquery.js',
    'pack' => 'jquery.packed.js',
    'min' => 'jquery.min.js',
  );
  return JQUERY_UPDATE_REPLACE_PATH . '/' . $jquery_file[variable_get('jquery_update_compression_type', 'pack')];
}