function user_update_7008
7.x user.install | 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
- drupal-7.x/
modules/ user/ user.install, line 625 - Install, update and uninstall functions for the user module.
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);
}
}