function customerror_uninstall in Customerror 6
Same name and namespace in other branches
- 5 customerror.install \customerror_uninstall()
- 7 customerror.install \customerror_uninstall()
Implements hook_uninstall().
File
- ./
customerror.install, line 11 - Install and uninstall hooks.
Code
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, '');
}
}
}