You are here

apachesolr_multilingual_confgen.install in Apache Solr Multilingual 7

TODO

File

apachesolr_multilingual_confgen/apachesolr_multilingual_confgen.install
View source
<?php

/**
 * @file
 *  TODO
 */

/**
 * Implements hook_enable().
 *
 * Register multilingual variables provided by Apache Solr Multilingual
 */
function apachesolr_multilingual_confgen_enable() {
  apachesolr_multiligual_confgen_register_multilingual_variables();
}

/**
 * Implements hook_disable().
 *
 * Un-register multilingual variables provided by Apache Solr Multilingual
 */
function apachesolr_multilingual_confgen_disable() {
  $old_variables = array_merge(apachesolr_multilingual_confgen_get_i18n_variables(), apachesolr_multilingual_confgen_get_apachesolr_confgen_textfiles_i18n_variables());
  apachesolr_multiligual_confgen_unregister_multilingual_variables($old_variables);
}

// TODO delete variables on uninstall

/**
 * Register spell checker variables
 */
function apachesolr_multilingual_confgen_update_7100() {

  // see apachesolr_multilingual_confgen_update_7101()
  // module_load_include('module', 'apachesolr_multilingual_confgen');
  // apachesolr_multiligual_confgen_register_multilingual_variables();
}

/**
 * Register lowerCase variables
 */
function apachesolr_multilingual_confgen_update_7101() {
  module_load_include('module', 'apachesolr_multilingual_confgen');
  apachesolr_multiligual_confgen_register_multilingual_variables();
}