Determines if the current user has access to the user registration page.
bool TRUE if the user is not already logged in and can register for an account.
function user_register_access() {
return user_is_anonymous() && variable_get('user_register', USER_REGISTER_VISITORS_ADMINISTRATIVE_APPROVAL);
}