You are here

public function WordPressItemMigration::complete in WordPress Migrate 7

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

Complete node - called just after node_save().

Parameters

stdClass $node:

stdClass $row:

File

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

Class

WordPressItemMigration
Intermediate Migration class, implementing behavior common across different types (post_type) of items.

Code

public function complete(stdClass $node, stdClass $row) {

  // Remember the nid of any node where we weren't able to resolve ?p=23
  // links yet - by the time the page migration's postImport() is called, we
  // should have resolved all references.
  if ($this->linksNeedFixing) {
    self::$linksToFix[] = $node->nid;
  }
}