You are here

function jquery_ui_get_version in jQuery UI 5

Same name and namespace in other branches
  1. 6 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 119
Provides the jQuery UI plug-in to other Drupal modules.

Code

function jquery_ui_get_version() {
  $version = 0;
  if (file_exists(JQUERY_UI_PATH . '/version.txt')) {
    $version = file_get_contents(JQUERY_UI_PATH . '/version.txt');
  }
  return $version;
}