public function DrupalUser5Migration::__construct in Drupal-to-Drupal data migration 7.2
Parameters
array $arguments:
Overrides DrupalUserMigration::__construct
File
- d5/
user.inc, line 14 - Implementation of DrupalUserMigration for Drupal 5 sources.
Class
- DrupalUser5Migration
- Handling specific to a Drupal 5 source for users.
Code
public function __construct(array $arguments) {
parent::__construct($arguments);
// Indicate that our incoming MD5 passwords should be rehashed for Drupal 7.
$this->destination = new DrupalDestinationUser(array(
'md5_passwords' => TRUE,
));
// Per-user comment settings dropped in Drupal 7.
$this
->addUnmigratedSources(array(
'mode',
'threshold',
'sort',
));
$this
->addFieldMapping(NULL, 'timezone_name')
->description('If present, assigned to D7 timezone');
}