entityreference.migrate.inc

  1. cis7 sites/all/modules/ulmus/entityreference/entityreference.migrate.inc
  2. cle7 sites/all/modules/ulmus/entityreference/entityreference.migrate.inc
  3. ecd7 sites/all/modules/ulmus/entityreference/entityreference.migrate.inc
  4. elmsmedia7 sites/all/modules/ulmus/entityreference/entityreference.migrate.inc
  5. harmony7 sites/all/modules/ulmus/entityreference/entityreference.migrate.inc
  6. icor7 sites/all/modules/ulmus/entityreference/entityreference.migrate.inc
  7. icor7 sites/all/modules/local_contrib/entityreference_dynamicselect_widget/entityreference/entityreference.migrate.inc
  8. meedjum_blog7 sites/all/modules/ulmus/entityreference/entityreference.migrate.inc
  9. mooc7 sites/all/modules/ulmus/entityreference/entityreference.migrate.inc

Support for processing entity reference fields in Migrate.

Functions

Namesort descending Description
entityreference_migrate_api Implement hook_migrate_api().

Classes

File

sites/all/modules/ulmus/entityreference/entityreference.migrate.inc
View source
  1. <?php
  2. /**
  3. * @file
  4. * Support for processing entity reference fields in Migrate.
  5. */
  6. /**
  7. * Implement hook_migrate_api().
  8. */
  9. function entityreference_migrate_api() {
  10. return array(
  11. 'api' => 2,
  12. 'field handlers' => array('MigrateEntityReferenceFieldHandler'),
  13. );
  14. }
  15. class MigrateEntityReferenceFieldHandler extends MigrateSimpleFieldHandler {
  16. public function __construct() {
  17. parent::__construct(array(
  18. 'value_key' => 'target_id',
  19. 'skip_empty' => TRUE,
  20. ));
  21. $this->registerTypes(array('entityreference'));
  22. }
  23. }