You are here

function _enable_biblio_vocabularies in Bibliography Module 6

Same name and namespace in other branches
  1. 7 biblio.install \_enable_biblio_vocabularies()
  2. 7.2 biblio.install \_enable_biblio_vocabularies()
1 call to _enable_biblio_vocabularies()
biblio_enable in ./biblio.install

File

./biblio.install, line 38
Install file for biblio module

Code

function _enable_biblio_vocabularies() {
  $vids = variable_get('biblio_vocabularies', array());
  foreach ($vids as $vid) {
    if ($voc = taxonomy_vocabulary_load($vid)) {
      $voc = (array) $voc;
      $voc['nodes']['biblio'] = 1;
      taxonomy_save_vocabulary($voc);
    }
  }
}