You are here

function user_registrationpassword_update_7000 in User registration password 7

Update 7000 updates the name of the variable.

File

./user_registrationpassword.install, line 66
Uninstall function to clean up variables data.

Code

function user_registrationpassword_update_7000() {

  // Copy the value of the user_registrationpassword variable
  // to the user_registrationpassword_registration variable.
  variable_set('user_registrationpassword_registration', variable_get('user_registrationpassword', USER_REGISTRATIONPASSWORD_VERIFICATION_PASS));

  // Delete the user_registrationpassword variable.
  variable_del('user_registrationpassword');
}