You are here

public function DrupalUserMigration::prepare in Drupal-to-Drupal data migration 7.2

Implements Migration::prepare().

Parameters

$account:

$row:

File

./user.inc, line 232
Base class for migrating users into Drupal.

Class

DrupalUserMigration
Base class for all user migrations - handles commonalities across all supported source Drupal versions.

Code

public function prepare($account, $row) {

  // Unserialize data if necessary.
  if (!is_array($account->data) && !strncmp($account->data, 'a:', 2)) {
    $account->data = unserialize($account->data);
  }
}