fac.install in Fast Autocomplete 7
Same filename and directory in other branches
This file contains the install and uninstall functions of the FAC module.
File
fac.installView 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
Name | Description |
---|---|
fac_uninstall | Implements hook_uninstall(). |
fac_update_7101 | Remove all old fac JSON files to support the new folder structure with hmac. |