function migrate_email_registration_name in Migrate Extras 6
Implementation of hook_email_registration_name().
If email_registration is in use, it overwrites any explicit username with one generated from the email address. If you install the patch at http://drupal.org/node/247717, this hook will short-circuit that and force the username set in the migration process (possibly randomly generated below).
Parameters
$edit: The values we passed to user_save().
$account: The user account as created by user_save().
Return value
The username we've already set - returning this prevents email_registration from overwriting it.
File
- ./
email_registration.migrate.inc, line 25 - Hooks to suport email_registration during user migration
Code
function migrate_email_registration_name($edit, $account) {
return $edit['name'];
}