summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2004-12-20 14:34:41 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2004-12-20 14:34:41 +0000
commit9f7b16ada9eb84b6459f4cc5ad4c9bc735fc1be7 (patch)
treea459a069d36b272f15ac1feea8a388ad217fdb9c
parente7b0b227b9993767c355e19c748ddfb9a4260239 (diff)
downloadbrdo-9f7b16ada9eb84b6459f4cc5ad4c9bc735fc1be7.tar.gz
brdo-9f7b16ada9eb84b6459f4cc5ad4c9bc735fc1be7.tar.bz2
#12793: Remove dependency of node.module on search.module.
-rw-r--r--modules/node.module6
-rw-r--r--modules/node/node.module6
2 files changed, 8 insertions, 4 deletions
diff --git a/modules/node.module b/modules/node.module
index 90309765c..0ea3c0405 100644
--- a/modules/node.module
+++ b/modules/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' => '<em>'. t($node->type) .'</em>', '%title' => "<em>$node->title</em>")));
$output = t('The node has been deleted.');
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' => '<em>'. t($node->type) .'</em>', '%title' => "<em>$node->title</em>")));
$output = t('The node has been deleted.');