function getid3_get_path in getID3() 8
Same name and namespace in other branches
- 5 getid3.module \getid3_get_path()
- 6 getid3.module \getid3_get_path()
- 7 getid3.module \getid3_get_path()
Returns the path where getID3() is installed.
4 calls to getid3_get_path()
- GetId3ConfigForm::buildForm in src/
Form/ GetId3ConfigForm.php - Form constructor.
- getid3_install in ./
getid3.install - Implements hook_install().
- getid3_load in ./
getid3.module - Load the getID3 library.
- getid3_requirements in ./
getid3.install - Implements hook_requirements().
File
- ./
getid3.module, line 85
Code
function getid3_get_path() {
$config = \Drupal::config('getid3.settings');
$path = $config
->get('path');
if (empty($path) || strlen($path) < 1) {
$path = 'libraries/getid3/getid3';
$config
->set('path', $path)
->save();
}
return $path;
}