summaryrefslogtreecommitdiff
path: root/modules/statistics
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2007-06-22 05:44:21 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2007-06-22 05:44:21 +0000
commit38a1300df2005f9f054f19d8d2bd41518a8e7ad8 (patch)
tree0dc73c018fc63f74500593f7c533c902bbd5f54d /modules/statistics
parentc5443d739e8caa07a55080acc06d806c0d0758fa (diff)
downloadbrdo-38a1300df2005f9f054f19d8d2bd41518a8e7ad8.tar.gz
brdo-38a1300df2005f9f054f19d8d2bd41518a8e7ad8.tar.bz2
#147723: Deletion API (by hunmonk). Woop woop.
Diffstat (limited to 'modules/statistics')
-rw-r--r--modules/statistics/statistics.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/statistics/statistics.module b/modules/statistics/statistics.module
index 69f65c326..fc91dfe91 100644
--- a/modules/statistics/statistics.module
+++ b/modules/statistics/statistics.module
@@ -553,7 +553,7 @@ 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);
+ drupal_delete_add_query('DELETE FROM {node_counter} WHERE nid = %d', $node->nid);
}
}