function _biblio_enable_keyword_vocabulary in Bibliography Module 6.2
Helper function to enable the keyword vocabulary for the biblio module.
1 call to _biblio_enable_keyword_vocabulary()
- _biblio_add_keywords in ./
biblio.install - Helper function to transfer biblio_keyword data to taxonomy vocabulary.
File
- ./
biblio.install, line 222 - Install, update, and uninstall functions for the biblio module.
Code
function _biblio_enable_keyword_vocabulary() {
if ($vocabulary = taxonomy_vocabulary_load(variable_get('biblio_keyword_vocabulary', 0))) {
// Existing install. Add back forum node type, if the biblio vocabulary
// still exists. Keep all other node types intact there.
$vocabulary = (array) $vocabulary;
$vocabulary['nodes']['biblio'] = 1;
taxonomy_save_vocabulary($vocabulary);
}
return $vocabulary['vid'];
}