public function DrupalUser6Migration::prepareRow in Drupal-to-Drupal data migration 7.2
Implementation of Migration::prepareRow().
Parameters
$row:
Overrides DrupalUserMigration::prepareRow
File
- d6/
user.inc, line 39 - Implementation of DrupalUserMigration for Drupal 6 sources.
Class
- DrupalUser6Migration
- Handling specific to a Drupal 6 source for users.
Code
public function prepareRow($row) {
if (parent::prepareRow($row) === FALSE) {
return FALSE;
}
/**
* Note that the date module adds a timezone_name column to the users table,
* so if present we can use that directly. Otherwise, we do as the D6->D7
* upgrade does and just clear it - let users reset their timezones in the
* D7 site.
*/
if (!empty($row->timezone_name)) {
$row->timezone = $row->timezone_name;
}
else {
$row->timezone = NULL;
}
}