You are here

function _enable_biblio_vocabularies in Bibliography Module 7

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

File

./biblio.install, line 67

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);
    }
  }
}