You are here

public function WordPressPage::postImport in WordPress Migrate 7

Same name and namespace in other branches
  1. 7.2 wordpress_item.inc \WordPressPage::postImport()

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.

Overrides Migration::postImport

File

./wordpress_item.inc, line 628
Support for migrating posts and pages from a WordPress blog into Drupal.

Class

WordPressPage
Implementation of WordPressMigration, for pages

Code

public function postImport() {
  foreach (self::$linksToFix as $nid) {
    $node = node_load($nid);
    $node->body[LANGUAGE_NONE][0]['value'] = $this
      ->fixLocalLinks($node->body[LANGUAGE_NONE][0]['value']);
    node_save($node);
  }
}