function invite_user_registration_by_invite_only in Invite 7.2
Same name and namespace in other branches
- 6.2 invite.module \invite_user_registration_by_invite_only()
- 7.4 invite.module \invite_user_registration_by_invite_only()
Determine if user registration mode is set to invite only.
3 calls to invite_user_registration_by_invite_only()
- invite_disable in ./
invite.install - Implements hook_disable().
- invite_form_alter in ./
invite.module - Implements hook_form_alter().
- invite_menu_alter in ./
invite.module - Implements hook_menu_alter().
File
- ./
invite.module, line 270 - Allows your users to send and track invitations to join your site.
Code
function invite_user_registration_by_invite_only() {
return variable_get('user_register', USER_REGISTER_VISITORS_ADMINISTRATIVE_APPROVAL) == USER_REGISTER_INVITATION_ONLY;
}