From 9f7b16ada9eb84b6459f4cc5ad4c9bc735fc1be7 Mon Sep 17 00:00:00 2001 From: Steven Wittens Date: Mon, 20 Dec 2004 14:34:41 +0000 Subject: #12793: Remove dependency of node.module on search.module. --- modules/node/node.module | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'modules/node/node.module') diff --git a/modules/node/node.module b/modules/node/node.module index 90309765c..0ea3c0405 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -1435,8 +1435,10 @@ function node_delete($edit) { // Clear the cache so an anonymous poster can see the node being deleted. cache_clear_all(); - // Remove this node from the search index - search_wipe($node->nid, 'node'); + // Remove this node from the search index if needed. + if (function_exists('search_wipe')) { + search_wipe($node->nid, 'node'); + } watchdog('special', t('%type: deleted %title.', array('%type' => ''. t($node->type) .'', '%title' => "$node->title"))); $output = t('The node has been deleted.'); -- cgit v1.2.3