You are here

fac.install in Fast Autocomplete 7

Same filename and directory in other branches
  1. 8 fac.install

This file contains the install and uninstall functions of the FAC module.

File

fac.install
View source
<?php

/**
 * @file
 * This file contains the install and uninstall functions of the FAC module.
 */

/**
 * Implements hook_uninstall().
 */
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);
  }
}

/**
 * Remove all old fac JSON files to support the new folder structure with hmac.
 */
function fac_update_7101(&$sandbox) {
  fac_delete_json_files();
}

Functions

Namesort descending Description
fac_uninstall Implements hook_uninstall().
fac_update_7101 Remove all old fac JSON files to support the new folder structure with hmac.