function userprotect_uninstall in User protect 6
Same name and namespace in other branches
- 5 userprotect.install \userprotect_uninstall()
- 7 userprotect.install \userprotect_uninstall()
Implementation of hook_uninstall().
File
- ./
userprotect.install, line 154
Code
function userprotect_uninstall() {
// Drop tables.
drupal_uninstall_schema('userprotect');
// Drop variables.
$variables = array(
'userprotect_protection_defaults',
'userprotect_autoprotect',
'userprotect_administrator_bypass_defaults',
'userprotect_role_protections',
);
foreach ($variables as $variable) {
variable_del($variable);
}
drupal_set_message(t('The User Protect module was uninstalled successfully.'));
}