You are here

function jquery_ui_get_version in jQuery UI 6

Same name and namespace in other branches
  1. 5 jquery_ui.module \jquery_ui_get_version()
  2. 7 jquery_ui.module \jquery_ui_get_version()

Return the version of jQuery UI installed.

1 call to jquery_ui_get_version()
jquery_ui_requirements in ./jquery_ui.install
Implementation of hook_requirements().

File

./jquery_ui.module, line 122
Provides the jQuery UI plug-in to other Drupal modules.

Code

function jquery_ui_get_version() {
  $version = 0;
  $path = jquery_ui_get_path();
  if ($path === FALSE) {
    return $version;
  }
  $file = $path . '/version.txt';
  if (file_exists($file)) {
    $version = file_get_contents($file);
  }
  return $version;
}