You are here

public function MigrateDestinationPrivatemsg::rollback in Migrate Extras 6.2

Same name and namespace in other branches
  1. 7.2 privatemsg.inc \MigrateDestinationPrivateMsg::rollback()

File

./privatemsg.inc, line 188
Support for the Privatemsg module.

Class

MigrateDestinationPrivatemsg
Destination class implementing

Code

public function rollback(array $key) {
  $mid = reset($key);
  migrate_instrument_start('private_message_sql_delete');
  db_query("DELETE FROM {pm_index} WHERE mid = %d", $mid);
  db_query("DELETE FROM {pm_message} WHERE mid = %d", $mid);
  migrate_instrument_stop('private_message_sql_delete');
  return TRUE;
}