function getlocations_check_jquery_version in Get Locations 7
Same name and namespace in other branches
- 7.2 getlocations.module \getlocations_check_jquery_version()
8 calls to getlocations_check_jquery_version()
- getlocations_blocks_block_configure in modules/
getlocations_blocks/ getlocations_blocks.module - Implements hook_block_configure().
- getlocations_fields_paths_get in modules/
getlocations_fields/ getlocations_fields.module - getlocations_gps_paths_get in modules/
getlocations_gps/ getlocations_gps.module - Javascript paths.
- getlocations_leaflet_paths_get in modules/
getlocations_leaflet/ getlocations_leaflet.module - Function
- getlocations_mapquest_paths_get in modules/
getlocations_mapquest/ getlocations_mapquest.module - Function
File
- ./
getlocations.module, line 6749 - getlocations.module @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL
Code
function getlocations_check_jquery_version($admin = TRUE) {
$version = '1.4.4';
$v = FALSE;
if (module_exists('jquery_update')) {
if ($admin) {
$version = variable_get('jquery_update_jquery_admin_version', FALSE);
if ($version == 0) {
$version = variable_get('jquery_update_jquery_version', FALSE);
}
}
else {
$version = variable_get('jquery_update_jquery_version', FALSE);
}
}
if ($version) {
$a = explode(".", $version);
if ($a[0] > 1) {
$v = TRUE;
}
elseif ($a[1] > 5) {
$v = TRUE;
}
}
return $v;
}