You are here

public function MigrateDestinationRestrictions::rollback in MERCI (Manage Equipment Reservations, Checkout and Inventory) 7.3

File

merci_migrate/merci_restrictions.inc, line 183
Support for node destinations.

Class

MigrateDestinationRestrictions
Destination class implementing migration into nodes.

Code

public function rollback(array $id) {
  static $count = 0;
  migrate_instrument_start('merci_restrictions_delete');
  $this
    ->prepareRollback($id);
  entity_delete('merci_restrictions', reset($id));
  $this
    ->completeRollback($id);
  migrate_instrument_stop('merci_restrictions_delete');
}