function invite_user_register_access in Invite 7.4
Same name and namespace in other branches
- 6.2 invite.module \invite_user_register_access()
- 7.2 invite.module \invite_user_register_access()
Access callback; determine access to user registration form.
2 string references to 'invite_user_register_access'
- invite_form_user_admin_settings_alter in ./
invite.module - Alter Account Settings form.
- invite_menu_alter in ./
invite.module - Implements hook_menu_alter().
File
- ./
invite.module, line 328
Code
function invite_user_register_access() {
$invite = invite_load_from_session();
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();
}