1 user.install user_update_1021()

Make sure that generation of automatic path alias is enabled for user 1.

Related topics

File

core/modules/user/user.install, line 1311
Install, update and uninstall functions for the user module.

Code

function user_update_1021() {
  if (module_exists('path') && config_get('path.settings', 'user_pattern')) {
    $admin_user = user_load(1);
    if ($admin_user->path['auto'] == FALSE) {
      $admin_user->path['auto'] = TRUE;
      user_save($admin_user);
    }
  }
}