function invite_disable in Invite 6.2
Same name and namespace in other branches
- 5.2 invite.module \invite_disable()
- 5 invite.module \invite_disable()
- 7.2 invite.install \invite_disable()
Implementation of hook_disable().
File
- ./
invite.module, line 1348 - Allows your users to send and track invitations to join your site.
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.'),
)));
}
}