public function MigrateDestinationTerm::rollback in Migrate 6.2
Same name and namespace in other branches
- 7.2 plugins/destinations/term.inc \MigrateDestinationTerm::rollback()
Delete a migrated term
Parameters
$ids: Array of fields representing the key (in this case, just tid).
File
- plugins/
destinations/ term.inc, line 86 - Support for taxonomy term destinations.
Class
- MigrateDestinationTerm
- Destination class implementing migration into terms.
Code
public function rollback(array $key) {
$tid = reset($key);
migrate_instrument_start('taxonomy_term_delete');
$this
->prepareRollback($tid);
$result = (bool) taxonomy_del_term($tid);
$this
->completeRollback($tid);
migrate_instrument_stop('taxonomy_term_delete');
return $result == SAVED_DELETED;
}