function invite_user_register_access in Invite 7.2
Same name and namespace in other branches
- 6.2 invite.module \invite_user_register_access()
- 7.4 invite.module \invite_user_register_access()
Access callback; determine access to user registration form.
2 string references to 'invite_user_register_access'
- invite_form_alter in ./
invite.module - Implements hook_form_alter().
- invite_menu_alter in ./
invite.module - Implements hook_menu_alter().
File
- ./
invite.module, line 277 - Allows your users to send and track invitations to join your site.
Code
function invite_user_register_access() {
$invite = invite_load_from_context();
if ((empty($invite) || invite_validate($invite) != INVITE_VALID) && !user_access('administer users')) {
return FALSE;
}
// Let the default handler take care of standard conditions.
return user_register_access();
}