public function Migration::addUnmigratedSources in Migrate 6.2
Same name and namespace in other branches
- 7.2 includes/migration.inc \Migration::addUnmigratedSources()
Shortcut for adding several source fields which are to be explicitly not migrated.
Parameters
array $fields: List of fields to mark as not for migration.
string $issue_group: Issue group name to apply to the generated mappings (defaults to 'DNM').
File
- includes/
migration.inc, line 271 - Defines the base class for import/rollback processes.
Class
- Migration
- The base class for all import objects. This is where most of the smarts of the migrate module resides. Migrations are created by deriving from this class, and in the constructor (after calling parent::__construct()) initializing at a minimum the name,…
Code
public function addUnmigratedSources(array $fields, $issue_group = NULL) {
if (!$issue_group) {
$issue_group = t('DNM');
}
foreach ($fields as $field) {
$this
->addFieldMapping(NULL, $field)
->issueGroup($issue_group);
}
}