You are here

public function MigrateDestinationNode::bulkRollback in Migrate 7.2

Delete a batch of nodes at once.

Parameters

$nids: Array of node IDs to be deleted.

1 method overrides MigrateDestinationNode::bulkRollback()
MigrateDestinationNodeRevision::bulkRollback in plugins/destinations/node.inc
Rolls back any versions that have been created.

File

plugins/destinations/node.inc, line 113
Support for node destinations.

Class

MigrateDestinationNode
Destination class implementing migration into nodes.

Code

public function bulkRollback(array $nids) {
  migrate_instrument_start('node_delete_multiple');
  $this
    ->prepareRollback($nids);
  node_delete_multiple($nids);
  $this
    ->completeRollback($nids);
  migrate_instrument_stop('node_delete_multiple');
}