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 drupal/modules/user/user.module
Implements hook_menu().

File

drupal/modules/user/user.module, line 1585
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);
}