You are here

function termcase_install in Termcase 7

Same name and namespace in other branches
  1. 6 termcase.install \termcase_install()

Implements hook_install().

File

./termcase.install, line 10
Install, update and uninstall functions for the Termcase module.

Code

function termcase_install() {
  module_load_include('module', 'termcase');
  $vocabularies = taxonomy_get_vocabularies();
  foreach ($vocabularies as $vid => $vocabulary) {
    _termcase_vocabulary_termcase($vocabulary->machine_name, TERMCASE_NONE);
  }
  $t = get_t();
  drupal_set_message($t('You can now define Termcase settings per vocabulary on the <a href="@vocabularies">taxonomy settings</a> page.', array(
    '@vocabularies' => url('admin/structure/taxonomy'),
  )));
}