public function DrupalEntity6Migration::prepareRow in Drupal-to-Drupal data migration 7.2
Called after the query data is fetched - we'll use this to populate the source row with the CCK fields.
Overrides DrupalEntityMigration::prepareRow
File
- d6/
entity.inc, line 89 - Implementation of DrupalEntityMigration for Drupal 6 sources.
Class
- DrupalEntity6Migration
- Handling specific to a Drupal 6 node source for entities.
Code
public function prepareRow($row) {
if (parent::prepareRow($row) === FALSE) {
return FALSE;
}
// Convert the default field names to the nice-looking ones.
foreach ($this->fixFieldNames as $clean => $display) {
if (isset($row->{$clean})) {
$row->{$display} = $row->{$clean};
unset($row->{$clean});
}
}
}