function user_registrationpassword_uninstall in User registration password 6
Same name and namespace in other branches
- 8 user_registrationpassword.install \user_registrationpassword_uninstall()
- 7 user_registrationpassword.install \user_registrationpassword_uninstall()
Implements hook_uninstall().
File
- ./
user_registrationpassword.install, line 39 - Uninstall function to clean up variables data.
Code
function user_registrationpassword_uninstall() {
// Delete all variables related to user_registrationpassword.
variable_del('user_registrationpassword_registration');
variable_del('user_registrationpassword_register_subject');
variable_del('user_registrationpassword_register_body');
// And reset system variables to origin.
variable_del('user_register');
variable_del('user_email_verification');
variable_del('user_mail_register_pending_approval_notify');
variable_del('user_mail_register_no_approval_required_notify');
// Reset the original (or previous adapted) ativation email template.
variable_set('user_mail_status_activated_subject', variable_get('user_mail_status_activated_subject_original', ''));
variable_set('user_mail_status_activated_body', variable_get('user_mail_status_activated_body_original', ''));
}