You are here

public function MigrateDestinationRoomsUnit::bulkRollback in Rooms - Drupal Booking for Hotels, B&Bs and Vacation Rentals 7

Delete a batch of room units at once.

Parameters

$units_ids: Array of rooms_unit IDs to be deleted.

File

modules/rooms_unit/rooms_unit.migrate.inc, line 208
Class MigrateDestinationRoomsUnit.

Class

MigrateDestinationRoomsUnit

Code

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