Project:Statistics Advanced Settings
Version:6.x-1.x-dev
Component:Miscellaneous
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs review

Issue Summary

Currently you can only reset the whole statistics, but sometimes you need to reset counter statistics by hand for whatever reason may be.
It would be handy if it can implemented even in ajax without the need of refresh of the whole editing page. Just an idea.

Comments

#1

me wants it too ;)

#2

+1

#3

I'm attaching a patch for this, it adds a node autocomplete for reseting only that info from node_counter table.

Be aware that this patch adds a dependency with ctools as drupal 6 does not have built in autocomplete for nodes.

If you don't want to add this dependency, just take the hook_menu and the autocomplete from ctools (content.menu.inc file)

AttachmentSize
statistics_advanced-477352.patch 2.91 KB

#4

Corrected some formatting issues.

AttachmentSize
statistics_advanced-477352.patch 2.84 KB

#5

Again, I had missed one comented line

AttachmentSize
statistics_advanced-477352.patch 2.85 KB

#6

Status:active» needs review

Changing status to needs review

#7

tested the patch and works fine. (with latest D6 and updated modules)
I've had to install ctools, and I wonder if that would be mandatory by the module or it will be embedded somehow.

kudos :)