Index: email_registration.migrate.inc =================================================================== RCS file: email_registration.migrate.inc diff -N email_registration.migrate.inc --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ email_registration.migrate.inc 7 Jan 2010 22:37:24 -0000 @@ -0,0 +1,38 @@ +uid == 0) { + if (!variable_get('user_email_verification', 1) && $user->uid == 0) { $user = $account; $user->name = $namenew; } @@ -104,4 +104,13 @@ function email_registration_user_login_v $form_state['values']['name'] = $name; } } -} \ No newline at end of file +} + +/** + * Implementation of hook_migrate_init(). + */ +function email_registration_migrate_init() { + // Don't load migration support unless we need it + $path = drupal_get_path('module', 'email_registration') . '/email_registration.migrate.inc'; + include_once($path); +}