function email_registration_migrate_prepare_user in Migrate Extras 6
Implementation of hook_migrate_prepare_user().
File
- ./
email_registration.migrate.inc, line 32  - Hooks to suport email_registration during user migration
 
Code
function email_registration_migrate_prepare_user(&$newuser, $tblinfo, $row) {
  // Generate a random username if none was provided
  if (!$newuser['name']) {
    // There is a tiny risk that the generated name will not be unique
    $newuser['name'] = user_password();
  }
}