summaryrefslogtreecommitdiff
path: root/modules/node/node.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-08-03 19:02:06 +0000
committerDries Buytaert <dries@buytaert.net>2008-08-03 19:02:06 +0000
commitbc3c2902697f336957d88eda335709b39a5b1cf6 (patch)
treeb23b3c9fb85fccf31ed12f385f5780fb85e2fc6b /modules/node/node.module
parent6f167edd7cb0501f9684eea45a906e5ce88c4d9f (diff)
downloadbrdo-bc3c2902697f336957d88eda335709b39a5b1cf6.tar.gz
brdo-bc3c2902697f336957d88eda335709b39a5b1cf6.tar.bz2
- Patch #289796 by cwgordon7 and webchick: killed some exceptions.
Diffstat (limited to 'modules/node/node.module')
-rw-r--r--modules/node/node.module5
1 files changed, 4 insertions, 1 deletions
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));