You are here

function _biblio_enable_vocabularies in Bibliography Module 6.2

Helper function to enable vocabularies for the biblio module.

1 call to _biblio_enable_vocabularies()
biblio_enable in ./biblio.install
Implements hook_enable().

File

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

Code

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