I am migrating content using both the migrate, migrate_d2d and my own custom module which references the 2 migrate modules. The below code successfully migrates content from Drupal 6 to Drupal 7 when registering and running the migration of "PressMigration" within the .module file but I always want the Drupal 7 migrated content body area to have the "Text format" of "Full HTML". How can I get all the migrated content to have the "Text format" of "Full HTML" for the body.
Thanks,
John
class PressMigration extends DrupalNode6Migration {
protected function query() {
$query = parent::query();
//Only include specific nodes in migrationj
$query->addJoin('LEFT OUTER', 'term_node', 'tn', 'n.vid=tn.vid');
$query->addField('tn', 'tid', 'tn.tid');
$query->addField('tn', 'vid', 'tn.vid');
$query->condition('tn.tid', '115', '=');
return $query;
}
public function __construct(array $arguments) {
parent::__construct($arguments);
$this->addFieldMapping('field_release_date', 'field_release_date');
$this->addFieldMapping('field_contact', 'field_contact_information');
$this->addFieldMapping('field_subtitle', 'field_sub_title');
$this->addFieldMapping('field_teaser', 'field_media_excerpt');
$this->addFieldMapping('field_custom_title', 'field_custom_title');
$this->addFieldMapping('field_alt_lang', 'field_alternate_lang');
$this->addFieldMapping('field_related_item', 'field_media_related');
$this->addFieldMapping('field_archiving_date', 'field_archive_date');
}
}