Created
November 28, 2014 17:49
-
-
Save botris/9ec9cb7023ebfd4c3551 to your computer and use it in GitHub Desktop.
Drupal to Drupal migrate, migrate associated terms
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Extending DrupalNode5Migration (or 6) migrating the correct terms | |
* - Add the source migration and source tid | |
* - Declare default value | |
*/ | |
$this->addFieldMapping('field_tags', '3') | |
->sourceMigration('Tags'); | |
$this->addFieldMapping('field_tags:source_type') | |
->defaultValue('tid'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment