public function DrupalYoutube7Migration::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 DrupalFile7Migration::prepareRow
File
- d7/
file.inc, line 157 - Implementation of DrupalFileMigration for Drupal 7 sources.
Class
- DrupalYoutube7Migration
- Pull youtube links in their own migration class, based on normal file migration.
Code
public function prepareRow($row) {
if (parent::prepareRow($row) === FALSE) {
return FALSE;
}
$row->uri = str_replace('youtube://v/', 'http://www.youtube.com/watch?v=', $row->uri);
}