function user_update_7008
If 'user_register' variable was unset in Drupal 6, set it to be the same as the Drupal 6 default setting.
Related topics
File
-
modules/
user/ user.install, line 638
Code
function user_update_7008() {
if (!isset($GLOBALS['conf']['user_register'])) {
// Set to the Drupal 6 default, "visitors can create accounts".
variable_set('user_register', USER_REGISTER_VISITORS);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.