You are here

public function MigrateDestinationWebformSubmission::bulkRollback in Migrate Extras 7.2

Delete a batch of submissions at once.

Parameters

$sids: Array of submission IDs to be deleted.

File

./webform.inc, line 275

Class

MigrateDestinationWebformSubmission
Destination class for the webform_submissions table.

Code

public function bulkRollback(array $sids) {
  migrate_instrument_start(__METHOD__);
  foreach (webform_get_submissions(array(
    'sid' => $sids,
  )) as $submission) {
    webform_submission_delete($this->node, $submission);
  }
  migrate_instrument_stop(__METHOD__);
}