summaryrefslogtreecommitdiff
path: root/modules/statistics/statistics.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/statistics/statistics.module')
-rw-r--r--modules/statistics/statistics.module11
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);
}
/**