You are here

function domain_taxonomy_install in Domain Taxonomy 6

Same name and namespace in other branches
  1. 7.3 domain_taxonomy.install \domain_taxonomy_install()
  2. 7 domain_taxonomy.install \domain_taxonomy_install()

Implements hook_install()

File

./domain_taxonomy.install, line 11
Install file.

Code

function domain_taxonomy_install() {
  drupal_install_schema('domain_taxonomy');
  $vocs = taxonomy_get_vocabularies();
  if (count($vocs) > 0) {
    $voc_options[] = '';
    foreach ($vocs as $voc) {
      variable_set('domain_disable_voc_' . $voc->vid, true);
      variable_set('domain_share_voc_' . $voc->vid, true);
    }
  }
}