diff options
author | Dries Buytaert <dries@buytaert.net> | 2008-10-06 12:55:56 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2008-10-06 12:55:56 +0000 |
commit | 87567f8916b78b2eb8ed279b728a30ce2dce249a (patch) | |
tree | 097b0e936bc5f07cfeb3fcee7823a23a0be76f33 /modules/statistics/statistics.module | |
parent | 026af5df34694c8ca5c3708f3fe23fd10ec160cb (diff) | |
download | brdo-87567f8916b78b2eb8ed279b728a30ce2dce249a.tar.gz brdo-87567f8916b78b2eb8ed279b728a30ce2dce249a.tar.bz2 |
- Patch #310212 by justinrandell: killed in _node hook, as well as twelve sable tooth tigers.
Diffstat (limited to 'modules/statistics/statistics.module')
-rw-r--r-- | modules/statistics/statistics.module | 11 |
1 files changed, 4 insertions, 7 deletions
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); } /** |