function user_registrationpassword_update_7001 in User registration password 7
Update 7001 updates all static variables.
File
- ./
user_registrationpassword.install, line 77 - Uninstall function to clean up variables data.
Code
function user_registrationpassword_update_7001() {
if (variable_get('user_registrationpassword_registration', '') == 0) {
variable_set('user_registrationpassword_registration', 'none');
}
if (variable_get('user_registrationpassword_registration', '') == 1) {
variable_set('user_registrationpassword_registration', 'default');
}
if (variable_get('user_registrationpassword_registration', '') == 2) {
variable_set('user_registrationpassword_registration', 'with-pass');
}
}