You are here

function invite_disable in Invite 7.2

Same name and namespace in other branches
  1. 5.2 invite.module \invite_disable()
  2. 5 invite.module \invite_disable()
  3. 6.2 invite.module \invite_disable()

Implements hook_disable().

File

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

Code

function invite_disable() {
  if (invite_user_registration_by_invite_only()) {
    variable_set('user_register', 1);
    drupal_set_message(t('User registration option reset to %no_approval.', array(
      '%no_approval' => t('Visitors can create accounts and no administrator approval is required.'),
    )));
  }
}