You are here

function migrate_extras_migrate_prepare_user in Migrate Extras 6

Implementation of hook_migrate_destination_prepare_user().

File

./migrate_extras.module, line 180

Code

function migrate_extras_migrate_prepare_user(&$newuser, $tblinfo, $row) {

  //note new user is an array, not object

  //get the primary key (uid)
  $srckey = $tblinfo->sourcekey;
  $uid = $row->{$srckey};

  // Remove md5pass from the user object
  if (isset($newuser['md5pass'])) {

    //don't want to let this remain in the $user object or it will be stored in $user->data
    unset($newuser['md5pass']);
  }
}