You are here

protected function WordPressMigration::postImport in WordPress Migrate 7.2

Called after completion of each migration.

Overrides Migration::postImport

2 calls to WordPressMigration::postImport()
WordPressAttachment::postImport in ./wordpress_attachment.inc
Called after all attachments are imported - fix up references to the imported attachments in node bodies.
WordPressPage::postImport in ./wordpress_item.inc
Called after completion of the page migration. We review any nodes with links that couldn't be resolved at migration time (presumably because they refer to nodes not yet migrated) and see if we can resolve them now.
2 methods override WordPressMigration::postImport()
WordPressAttachment::postImport in ./wordpress_attachment.inc
Called after all attachments are imported - fix up references to the imported attachments in node bodies.
WordPressPage::postImport in ./wordpress_item.inc
Called after completion of the page migration. We review any nodes with links that couldn't be resolved at migration time (presumably because they refer to nodes not yet migrated) and see if we can resolve them now.

File

./wordpress.inc, line 52
Implementation of migration from WordPress into Drupal

Class

WordPressMigration
@file Implementation of migration from WordPress into Drupal

Code

protected function postImport() {
  parent::postImport();

  // Clear ignored rows from the map, so as not to confuse reporting.
  $map_table = $this->map
    ->getMapTable();
  foreach ($this->skippedItems as $postID) {
    db_delete($map_table)
      ->condition('needs_update', MigrateMap::STATUS_IGNORED)
      ->condition('sourceid1', $postID)
      ->execute();
  }
  $this->skippedItems = array();
}