diff options
Diffstat (limited to 'modules/node/node.module')
-rw-r--r-- | modules/node/node.module | 5 |
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)); |