Same name and namespace in other branches
- 6.x modules/user/user.module \user_register_access()
Determines if the current user has access to the user registration page.
Return value
bool TRUE if the user is not already logged in and can register for an account.
1 string reference to 'user_register_access'
- user_menu in modules/
user/ user.module - Implements hook_menu().
File
- modules/
user/ user.module, line 1594 - Enables the user registration and login system.
Code
function user_register_access() {
return user_is_anonymous() && variable_get('user_register', USER_REGISTER_VISITORS_ADMINISTRATIVE_APPROVAL);
}