You are here

function invite_update_7201 in Invite 7.2

Change id of 'Invitees only' option on user settings form.

File

./invite.install, line 449
Installation file for invite module.

Code

function invite_update_7201() {
  if (variable_get('user_register', USER_REGISTER_VISITORS_ADMINISTRATIVE_APPROVAL) === '1-inviteonly') {
    variable_set('user_register', USER_REGISTER_INVITATION_ONLY);
  }
}