function biblio_batch_uninstall_finished in Bibliography Module 6.2
Same name and namespace in other branches
- 7 biblio.install \biblio_batch_uninstall_finished()
1 string reference to 'biblio_batch_uninstall_finished'
- biblio_uninstall in ./
biblio.install - Implements hook_uninstall().
File
- ./
biblio.install, line 160 - Install, update, and uninstall functions for the biblio module.
Code
function biblio_batch_uninstall_finished($success, $results, $operations) {
if ($success) {
if (module_exists('taxonomy')) {
$voc = taxonomy_get_vocabularies();
foreach ($voc as $vid => $vocabulary) {
if ($vocabulary->module == 'biblio') {
taxonomy_del_vocabulary($vid);
}
}
}
$result = db_query("SELECT * FROM {variable} WHERE name LIKE 'biblio_%'");
while ($var = db_fetch_object($result)) {
variable_del($var->name);
}
drupal_uninstall_schema('biblio');
cache_clear_all();
}
}