You are here

function biblio_disable in Bibliography Module 6.2

Same name and namespace in other branches
  1. 6 biblio.install \biblio_disable()
  2. 7 biblio.install \biblio_disable()
  3. 7.2 biblio.install \biblio_disable()

Implements hook_disable().

File

./biblio.install, line 76
Install, update, and uninstall functions for the biblio module.

Code

function biblio_disable() {
  if (module_exists('taxonomy')) {
    $voc = taxonomy_get_vocabularies();
    foreach ($voc as $vid => $vocabulary) {
      if (isset($vocabulary->nodes['biblio'])) {
        $vids[] = $vid;
      }
    }
    variable_set('biblio_vocabularies', $vids);
  }
}