We and our clients have faced multiple times when we wanted to delete all revisions of a node prior a specific one without setting up automated processes.
This module helps to delete all prior revisions when deleting a node revision.
We didn't want to create a whole new revision list or management panel, but in the other hand we were not able to hook properly to the revisions list page to place checkboxes or extra links. This we hooked into the revision deletion screen by adding a new checkbox.
Project page: https://drupal.org/sandbox/gaborpeter/2092807
Git clone: git clone --branch 7.x-1.x http://git.drupal.org/sandbox/gaborpeter/2092807.git
Test method:
- enable revisioning for a content type
- create 5 revisions
- go to the node's revision tab and delete a revision (which is not the last one in the list)
- you will see a new checkbox to check to delete prior revisions of the currently deleted one
Comments
Comment #1
PA robot CreditAttribution: PA robot commentedWe are currently quite busy with all the project applications and we prefer projects with a review bonus. Please help reviewing and put yourself on the high priority list, then we will take a look at your project right away :-)
Also, you should get your friends, colleagues or other community members involved to review this application. Let them go through the review checklist and post a comment that sets this issue to "needs work" (they found some problems with the project) or "reviewed & tested by the community" (they found no major flaws).
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #2
aramboyajyan CreditAttribution: aramboyajyan commentedThe module seems to be completely ready.
There were no issues reported by Coder and Pareview.sh service.
Everything works without problems. Tested on several content types ranging from custom ones with additional fields to ones generated by core modules (blog, forum, poll).
Couple of really minor details:
README.txt
file.node_revision_bulk_delete.batch.inc
- “[...] while processing @operation with arguments : @args”The module is quite handy for everyone using revisioning system, so if there are enough people interested in it, you might try getting it into core one day.
Comment #3
iamrasec CreditAttribution: iamrasec commentedI think this module is ready. Having no issues whatsoever during testing.
Comment #4
kscheirerThis text is not quite clear:
t('Delete all %revs_no revisions as well prior this one.'
. How about "Also delete %revs_no revisions prior to this one." instead?It might be nice if you listed the extra revision_ids/titles that were going to be deleted.
Otherwise this looks good, just setting to needs work because of the sparse project page.
----
Top Shelf Modules - Crafted, Curated, Contributed.
Comment #5
kscheirerActually, your project page is ok.
Thanks for your contribution, gaborpeter!
I updated your account to let you promote this to a full project and also create new projects as either a sandbox or a "full" project.
Here are some recommended readings to help with excellent maintainership:
You can find lots more contributors chatting on IRC in #drupal-contribute. So, come hang out and get involved!
Thanks, also, for your patience with the review process. Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.
Thanks to the dedicated reviewer(s) as well.
----
Top Shelf Modules - Crafted, Curated, Contributed.
Comment #6
gaborpeter CreditAttribution: gaborpeter commentedThank you everyone for your help to review my module and for the further informations.
In the new commit I've fixed the recommendations of kscheirer and topsitemakers.
Here is a screenshot how a list have been added to display the revisions. http://bit.ly/1bSxPei
Comment #7.0
(not verified) CreditAttribution: commentedsmall grammar issue