You are here

function migrate_user in Migrate 6.2

Implementation of hook_user()

File

./migrate.module, line 483

Code

function migrate_user($op, &$edit, &$account, $category = NULL) {
  switch ($op) {
    case 'insert':
    case 'update':

      // Prevent from saving in users.data
      if (isset($edit['migrate'])) {
        $edit['migrate'] = NULL;
      }
      if (isset($edit['pathauto_perform_alias'])) {

        // Prevent from saving in users.data
        $edit['pathauto_perform_alias'] = NULL;
      }
      break;
  }
}