You are here

function _regcode_install_vocabulary in Registration codes 6.2

Same name and namespace in other branches
  1. 7.2 regcode.install \_regcode_install_vocabulary()
  2. 7 regcode.install \_regcode_install_vocabulary()

Create a vocabulary

2 calls to _regcode_install_vocabulary()
regcode_install in ./regcode.install
Implementation of hook_install().
regcode_update_6200 in ./regcode.install
Implementation of hook_update_N()

File

./regcode.install, line 30
Install, uninstall and scheme functions for the regcode module.

Code

function _regcode_install_vocabulary() {
  $vocabulary = array(
    'name' => t('Registration codes'),
    'multiple' => '1',
    'required' => '1',
    'hierarchy' => '0',
    'relations' => '0',
    'module' => 'regcode',
    'nodes' => FALSE,
  );
  taxonomy_save_vocabulary($vocabulary);
  variable_set('regcode_vocabulary', $vocabulary['vid']);
}