function password_policy_uninstall in Password Policy 5
Same name and namespace in other branches
- 8.3 password_policy.install \password_policy_uninstall()
- 6 password_policy.install \password_policy_uninstall()
- 7.2 password_policy.install \password_policy_uninstall()
- 7 password_policy.install \password_policy_uninstall()
Implementation of hook_uninstall().
File
- ./
password_policy.install, line 41
Code
function password_policy_uninstall() {
variable_del('password_policy_admin');
variable_del('password_policy_begin');
variable_del('password_policy_block');
variable_del('password_policy_mail_warning_subject');
variable_del('password_policy_mail_warning_body');
switch ($GLOBALS['db_type']) {
case 'mysql':
case 'mysqli':
db_query('DROP TABLE {password_policy}');
db_query('DROP TABLE {password_policy_users}');
db_query('DROP TABLE {password_policy_expiration}');
break;
}
}