Wishlist item from Drupalcon - shortcuts for mapping identically-named fields, and generating do-not-migrate mappings. For example, replacing:

  $this->addFieldMapping('title', 'title');
  $this->addFieldMapping('body', 'body');
  $this->addFieldMapping('uid')
       ->issueGroup(t('DNM'));
  $this->addFieldMapping('sticky')
       ->issueGroup(t('DNM'));
  $this->addFieldMapping(NULL, 'proprietary_data')
       ->issueGroup(t('DNM'));
  $this->addFieldMapping(NULL, 'skip_this_field')
       ->issueGroup(t('DNM'));

with:

  $this->addSimpleMappings(array('title', 'body'));
  $this->addUnmigratedDestinations(array('uid', 'sticky'));
  $this->addUnmigratedSources(array('proprietary_data', 'skip_this_field'));

Comments

mikeryan’s picture

Status: Active » Fixed

Done!

moshe weitzman’s picture

Love it.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.