function _regcode_install_vocabulary in Registration codes 7
Same name and namespace in other branches
- 6.2 regcode.install \_regcode_install_vocabulary()
- 7.2 regcode.install \_regcode_install_vocabulary()
Create a vocabulary.
1 call to _regcode_install_vocabulary()
- regcode_install in ./
regcode.install - Implements hook_install().
File
- ./
regcode.install, line 27 - Install, uninstall and scheme functions for the regcode module.
Code
function _regcode_install_vocabulary() {
$vocabulary = new stdClass();
$vocabulary->name = t('Registration codes');
$vocabulary->description = t('Classify registration codes.');
$vocabulary->machine_name = 'regcode';
$vocabulary->hierarchy = 0;
$vocabulary->module = 'regcode';
$vocabulary->nodes = FALSE;
taxonomy_vocabulary_save($vocabulary);
variable_set('regcode_vocabulary', $vocabulary->vid);
}