function getid3_get_version in getID3() 8
Same name and namespace in other branches
- 5 getid3.module \getid3_get_version()
- 6 getid3.module \getid3_get_version()
- 7 getid3.module \getid3_get_version()
Returns the version number of getID3() that is installed.
2 calls to getid3_get_version()
- GetId3ConfigForm::buildForm in src/
Form/ GetId3ConfigForm.php - Form constructor.
- getid3_requirements in ./
getid3.install - Implements hook_requirements().
File
- ./
getid3.module, line 99
Code
function getid3_get_version() {
if (getid3_load() == FALSE) {
return NULL;
}
$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;
}