public function DrupalNodeMigration::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 Migration::prepareRow
3 calls to DrupalNodeMigration::prepareRow()
- DrupalNode5Migration::prepareRow in d5/
node.inc - Called after the query data is fetched - we'll use this to populate the source row with the CCK fields.
- DrupalNode6Migration::prepareRow in d6/
node.inc - Called after the query data is fetched - we'll use this to populate the source row with the CCK fields.
- DrupalNode7Migration::prepareRow in d7/
node.inc - Called after the query data is fetched - we'll use this to populate the source row with the CCK fields.
3 methods override DrupalNodeMigration::prepareRow()
- DrupalNode5Migration::prepareRow in d5/
node.inc - Called after the query data is fetched - we'll use this to populate the source row with the CCK fields.
- DrupalNode6Migration::prepareRow in d6/
node.inc - Called after the query data is fetched - we'll use this to populate the source row with the CCK fields.
- DrupalNode7Migration::prepareRow in d7/
node.inc - Called after the query data is fetched - we'll use this to populate the source row with the CCK fields.
File
- ./
node.inc, line 171 - Base class for migrating nodes into Drupal.
Class
- DrupalNodeMigration
- Base class for all node migrations - handles commonalities across all supported source Drupal versions.
Code
public function prepareRow($row) {
if (parent::prepareRow($row) === FALSE) {
return FALSE;
}
// Add the path to the source row, if relevant
if ($this
->moduleExists('path')) {
$path = $this->version
->getPath('node/' . $row->nid);
if ($path) {
$row->path = $path;
}
}
$this->version
->getSourceValues($row, $row->nid);
}