You are here

public function MigrateDestinationComment::bulkRollback in Migrate 7.2

Delete a batch of comments at once.

Parameters

$cids: Array of comment IDs to be deleted.

File

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

Class

MigrateDestinationComment
Destination class implementing migration into comments.

Code

public function bulkRollback(array $cids) {
  migrate_instrument_start('comment_delete_multiple');
  $this
    ->prepareRollback($cids);
  $result = comment_delete_multiple($cids);
  $this
    ->completeRollback($cids);
  migrate_instrument_stop('comment_delete_multiple');
  return $result;
}