summaryrefslogtreecommitdiffstats
path: root/migrate.module
diff options
context:
space:
mode:
authorMike Ryan2010-02-27 21:21:09 +0000
committerMike Ryan2010-02-27 21:21:09 +0000
commit4f4481e408d79458ec87d6f2967782ac4f3ed5b3 (patch)
tree5957b89a65bfbcb038cdaab088d60f3783c72213 /migrate.module
parent940c119c1b9bf9e88d7f35b987bef4a781789dde (diff)
#725462 by danph: Add to delete hook
Diffstat (limited to 'migrate.module')
-rwxr-xr-xmigrate.module4
1 files changed, 3 insertions, 1 deletions
diff --git a/migrate.module b/migrate.module
index 7a18e10..9ebc903 100755
--- a/migrate.module
+++ b/migrate.module
@@ -404,6 +404,8 @@ function migrate_content_process_clear($mcsid, &$options = array()) {
FROM {migrate_content_sets}
WHERE mcsid=%d", $mcsid);
$tblinfo = db_fetch_object($result);
+ $tblinfo->maptable = $maptable;
+
$description = $tblinfo->description;
if ($tblinfo->status != MIGRATE_STATUS_IDLE) {
return MIGRATE_RESULT_IN_PROGRESS;
@@ -491,7 +493,7 @@ function migrate_content_process_clear($mcsid, &$options = array()) {
// @TODO: Should return success/failure. Problem: node_delete doesn't return anything...
if ($full_clear) {
timer_start('delete hooks');
- migrate_invoke_all("delete_$contenttype", $row->destid);
+ migrate_invoke_all("delete_$contenttype", $tblinfo, $row->destid);
timer_stop('delete hooks');
}
timer_start('clear map/msg');