function jquery_update_get_versions in jQuery Update 7.3
Retrieve the jQuery versions available by this module.
Return value
array The available jQuery versions.
2 calls to jquery_update_get_versions()
- jquery_update_get_version_options in ./
jquery_update.module - Retrieve the jQuery versions available by this module as select options.
- jquery_update_library_alter in ./
jquery_update.module - Implements hook_library_alter().
File
- ./
jquery_update.module, line 207 - Updates Drupal to use the latest version of jQuery.
Code
function jquery_update_get_versions() {
// Use the advanced drupal_static() pattern, since this has the potential
// to be called very often.
static $drupal_static_fast;
if (!isset($drupal_static_fast)) {
$drupal_static_fast['versions'] =& drupal_static(__FUNCTION__, drupal_map_assoc(array(
// 1.x.
'1.5',
'1.6',
'1.7',
'1.8',
'1.9',
'1.10',
'1.11',
'1.12',
// 2.x.
'2.1',
'2.2',
// 3.x.
'3.1',
)));
}
return $drupal_static_fast['versions'];
}