function user_register_access

Same name and namespace in other branches
  1. 6.x drupal-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.

3 string references to 'user_register_access'
drupal-6.bare.database.php in drupal-7.x/modules/simpletest/tests/upgrade/drupal-6.bare.database.php
Bare installation of Drupal 6.17, for test purposes.
drupal-6.filled.database.php in drupal-7.x/modules/simpletest/tests/upgrade/drupal-6.filled.database.php
Filled installation of Drupal 6.17, for test purposes.
user_menu in drupal-7.x/modules/user/user.module
Implements hook_menu().

Archivo

drupal-7.x/modules/user/user.module, line 1554
Enables the user registration and login system.

Código

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