You are here

public function MigrateDestinationAsset::bulkRollback in Asset 7

Delete a batch of assets at once.

Parameters

$aids: Array of asset IDs to be deleted.

File

includes/asset.migrate.inc, line 77
Asset Migrate integration.

Class

MigrateDestinationAsset
Destination class implementing migration into assets.

Code

public function bulkRollback(array $aids) {
  migrate_instrument_start('asset_delete_multiple');
  $this
    ->prepareRollback($aids);
  entity_delete_multiple('asset', $aids);
  $this
    ->completeRollback($aids);
  migrate_instrument_stop('asset_delete_multiple');
}