function getid3_get_version in getID3() 7
Same name and namespace in other branches
- 8 getid3.module \getid3_get_version()
- 5 getid3.module \getid3_get_version()
- 6 getid3.module \getid3_get_version()
Returns the version number of getID3() that is installed.
2 calls to getid3_get_version()
- getid3_admin_settings_form in ./getid3.admin.inc 
- Administration settings for getID3().
- getid3_requirements in ./getid3.install 
- Implements hook_requirements().
File
- ./getid3.module, line 220 
Code
function getid3_get_version() {
  if (getid3_load(FALSE)) {
    $getid3 = new getID3();
    // 1.9 and newer has a version method.
    if (method_exists($getid3, 'version')) {
      return $getid3
        ->version();
    }
    // Older versions defined a constant.
    if (defined('GETID3_VERSION')) {
      return GETID3_VERSION;
    }
  }
  return NULL;
}