You are here

function biblio_disable in Bibliography Module 6

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

File

./biblio.install, line 49
Install file for 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);
  }
}