public function WebformSettings::prepareRow in Migrate Webform 7
Default implementation of prepareRow(). This method is called from the source plugin upon first pulling the raw data from the source.
Parameters
$row: Object containing raw source data.
Return value
bool TRUE to process this row, FALSE to have the source skip it.
Overrides Migration::prepareRow
File
- ./
settings.inc, line 81
Class
Code
public function prepareRow($row) {
// skip?
if (parent::prepareRow($row) === FALSE) {
return FALSE;
}
$row->nid = $this
->handleSourceMigration($this->arguments['node_migrations'], $row->nid);
// Node creation filled the table with a bunch of junk defaults.
db_delete('webform')
->condition('nid', $row->nid)
->execute();
}