function rules_uninstall in Rules 7.2
Same name and namespace in other branches
- 6 rules/rules.install \rules_uninstall()
Implements hook_uninstall().
File
- ./
rules.install, line 29 - Rules - Installation file.
Code
function rules_uninstall() {
variable_del('rules_debug');
variable_del('rules_debug_log');
variable_del('rules_log_errors');
variable_del('rules_log_level');
variable_del('rules_clean_path');
variable_del('rules_path_cleaning_callback');
variable_del('rules_path_lower_case');
variable_del('rules_path_replacement_char');
variable_del('rules_path_transliteration');
// Delete all the debug region variables and then clear the variables cache.
db_delete('variable')
->condition('name', 'rules_debug_region_%', 'LIKE')
->execute();
cache_clear_all('variables', 'cache_bootstrap');
}