Commit bc3c2902 authored by Dries's avatar Dries

- Patch #289796 by cwgordon7 and webchick: killed some exceptions.

parent 6f167edd
......@@ -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));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment