You are here

function invite_disable in Invite 5.2

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

Implementation of hook_disable().

File

./invite.module, line 1305
Allows your users to send and track invitations to join your site.

Code

function invite_disable() {
  if (variable_get('user_register', 1) === '1-inviteonly') {
    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.'),
    )));
  }
}