You are here

public function MigrateDestinationCustomBlock::bulkRollback in Migrate 7.2

Delete a batch of custom blocks at once.

Parameters

$bids: Array of custom block IDs to be deleted.

File

plugins/destinations/block_custom.inc, line 173
Support for custom block destinations.

Class

MigrateDestinationCustomBlock
Destination class implementing migration into {block_custom}.

Code

public function bulkRollback(array $bids) {
  migrate_instrument_start('block_custom_delete_multiple');
  $this
    ->prepareRollback($bids);
  $this
    ->deleteMultipleCustomBlocks($bids);
  $this
    ->completeRollback($bids);
  migrate_instrument_stop('block_custom_delete_multiple');
}