function 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 1599

Code

function user_register_access() {
    return user_is_anonymous() && variable_get('user_register', USER_REGISTER_VISITORS_ADMINISTRATIVE_APPROVAL);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.