public function DrupalUser6Migration::__construct in Drupal-to-Drupal data migration 7.2
Parameters
array $arguments:
Overrides DrupalUserMigration::__construct
File
- d6/
user.inc, line 14 - Implementation of DrupalUserMigration for Drupal 6 sources.
Class
- DrupalUser6Migration
- Handling specific to a Drupal 6 source for users.
Code
public function __construct(array $arguments) {
// Document D6-specific fields
$this->sourceFields += array(
'mode' => t('Per-user comment display mode'),
'sort' => t('Per-user comment sort order'),
'threshold' => t('Obsolete comment configuration'),
);
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');
}