You are here

public function OgVocabMigrate::postImport in OG Vocabulary 7

When the import if completed, delete the fields from the instance.

Overrides Migration::postImport

File

includes/migrate/og_vocab.migrate.inc, line 113
Migrate plugin to populate the OG vocabulary field by the term references.

Class

OgVocabMigrate
@file Migrate plugin to populate the OG vocabulary field by the term references.

Code

public function postImport() {
  if (!$this
    ->isComplete()) {
    return;
  }
  foreach ($this->fieldNames as $field_name) {
    $instance = field_info_instance('node', $field_name, $this->bundle);
    field_delete_instance($instance);
  }
}