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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

klonos’s picture

me wants it too ;)

ddorian’s picture

+1

pcambra’s picture

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)

pcambra’s picture

Corrected some formatting issues.

pcambra’s picture

Again, I had missed one comented line

pcambra’s picture

Status: Active » Needs review

Changing status to needs review

ThePeach’s picture

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 :)