function getid3_install in getID3() 8
Same name and namespace in other branches
- 5 getid3.install \getid3_install()
- 6 getid3.install \getid3_install()
- 7.2 getid3.install \getid3_install()
- 7 getid3.install \getid3_install()
Implements hook_install().
File
- ./
getid3.install, line 44 - Install, update and uninstall functions for the getid3 module.
Code
function getid3_install() {
// Display a message if it fails to load getID3().
$status = getid3_load();
if ($status == FALSE) {
$path = getid3_get_path();
drupal_set_message(t('The getID3 files <em>getid3.php</em> and <em>write.php</em> could not be found in the %path directory.', array(
'%path' => $path,
)), 'error');
}
// Set module weight for the getID3 module.
module_set_weight('getid3', '-10');
}