You are here

function fac_uninstall in Fast Autocomplete 7

Same name and namespace in other branches
  1. 8 fac.install \fac_uninstall()

Implements hook_uninstall().

File

./fac.install, line 11
This file contains the install and uninstall functions of the FAC module.

Code

function fac_uninstall() {
  drupal_load('module', 'fac');

  // Remove all json files.
  fac_delete_json_files();

  // Delete all Fast Autocomplete variables.
  $variables = array(
    'fac_backend_service',
    'fac_backend_service_settings',
    'fac_clean_up_files',
    'fac_files_expire_time',
    'fac_input_selectors',
    'fac_key_min_length',
    'fac_key_max_length',
    'fac_use_module_css',
    'fac_breakpoint',
    'fac_result_location',
    'fac_bulk_generate_json_enabled',
    'fac_bulk_generate_json_size',
    'fac_bulk_generate_json_next_run',
    'fac_empty_result',
    'fac_anonymous_search',
    'fac_view_mode',
    'fac_all_results_link',
    'fac_all_results_link_threshold',
    'fac_hmac_key',
    'fac_change_hmac_key_interval',
    'fac_hmac_key_timestamp',
  );
  foreach ($variables as $variable) {
    variable_del($variable);
  }
}