From 87567f8916b78b2eb8ed279b728a30ce2dce249a Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 6 Oct 2008 12:55:56 +0000 Subject: - Patch #310212 by justinrandell: killed in _node hook, as well as twelve sable tooth tigers. --- modules/statistics/statistics.module | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'modules/statistics/statistics.module') diff --git a/modules/statistics/statistics.module b/modules/statistics/statistics.module index 42d4b6782..b830b20fd 100644 --- a/modules/statistics/statistics.module +++ b/modules/statistics/statistics.module @@ -317,14 +317,11 @@ function _statistics_format_item($title, $path) { } /** - * Implementation of hook_nodeapi(). + * Implementation of hook_nodeapi_delete(). */ -function statistics_nodeapi(&$node, $op, $arg = 0) { - switch ($op) { - case 'delete': - // clean up statistics table when node is deleted - db_query('DELETE FROM {node_counter} WHERE nid = %d', $node->nid); - } +function statistics_nodeapi_delete(&$node, $arg = 0) { + // clean up statistics table when node is deleted + db_query('DELETE FROM {node_counter} WHERE nid = %d', $node->nid); } /** -- cgit v1.2.3