Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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.
Comment | File | Size | Author |
---|---|---|---|
#5 | statistics_advanced-477352.patch | 2.85 KB | pcambra |
#4 | statistics_advanced-477352.patch | 2.84 KB | pcambra |
#3 | statistics_advanced-477352.patch | 2.91 KB | pcambra |
Comments
Comment #1
klonosme wants it too ;)
Comment #2
ddorian CreditAttribution: ddorian commented+1
Comment #3
pcambraI'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)
Comment #4
pcambraCorrected some formatting issues.
Comment #5
pcambraAgain, I had missed one comented line
Comment #6
pcambraChanging status to needs review
Comment #7
ThePeach CreditAttribution: ThePeach commentedtested 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 :)