From bc3c2902697f336957d88eda335709b39a5b1cf6 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 3 Aug 2008 19:02:06 +0000 Subject: - Patch #289796 by cwgordon7 and webchick: killed some exceptions. --- modules/node/node.module | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'modules/node/node.module') diff --git a/modules/node/node.module b/modules/node/node.module index 249a53bfe..49cc7aa75 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -1006,7 +1006,10 @@ function node_delete($nid) { cache_clear_all(); // Remove this node from the search index if needed. - if (function_exists('search_wipe')) { + // This code is implemented in node module rather than in search module, + // because node module is implementing search module's API, not the other + // way around. + if (module_exists('search')) { search_wipe($node->nid, 'node'); } watchdog('content', '@type: deleted %title.', array('@type' => $node->type, '%title' => $node->title)); -- cgit v1.2.3