You are here

public function MigrateDestinationProfile2::bulkRollback in Migrate Extras 7.2

Delete a batch of profiles at once.

Parameters

$ids: Array of profile IDs to be deleted.

File

./profile2.inc, line 90
Support for profile2 destinations.

Class

MigrateDestinationProfile2
Destination class implementing migration into nodes.

Code

public function bulkRollback(array $ids) {
  migrate_instrument_start('profile2_delete_multiple');
  $this
    ->prepareRollback($ids);
  entity_delete_multiple($this->entity_type, $ids);
  $this
    ->completeRollback($ids);
  migrate_instrument_stop('profile2_delete_multiple');
}