This repository has been archived on 2025-06-21. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
suitedesk/modules/customerror/customerror.install

19 lines
386 B
Text

<?php
/**
* @file
* Install and uninstall hooks.
*/
/**
* Implements hook_uninstall().
*/
function customerror_uninstall() {
db_query("DELETE FROM {variable} WHERE name LIKE 'customerror_%'");
foreach (_customerror_enum_errors() as $code => $desc) {
if (variable_get('site_' . $code, '') == 'customerror/' . $code) {
variable_del('site_' . $code, '');
}
}
}