Hi, is it possible to add a permission like "Perform cascade delete on entity X when deleting Y without confirmation" or add an option in the settings to prompt for cascade deletion only if we need it. That way in my exemple, if a user delete a gallery with pictures, the pictures are remove without the confirmation.

Thanks and nice module !!!

Comments

sw3b’s picture

Title: Add a permission who to perform deletion » Add a permission or option to remove confirmation before deletion
sprocketman’s picture

Status: Active » Needs work

sw3b, thanks for the suggestions. I am actually considering something like that already, but I'm still trying to work out the best way of implementing it. One thought, though...if all you're looking for is to have all the checkboxes checked by default on the delete confirm page, use 7.x-1.0, at least for now. I changed it in the dev version in part because of wanting to set up a special permission like what you are suggesting. Either way, something like that should probably be in place soon.

sw3b’s picture

Ok i'm not looking the check all the checkboxes, i'm looking for something who will be transparent to the user. Maybe add an option, a checkboxe, in admin/config/content/ercd where you can disable confirmation before deleting nodes. Does it make sense ?!?

Or on another side, a permission to be able, to give the permission to delete all node like you already go, and a new permission to delete all node without permission. This one would give more flexibility to select user and/or admin or moderator. ;)

Let me know if you got something to test ! I will be very happy to test it.

sprocketman’s picture

Status: Needs work » Needs review

Ok, sorry for the delay on this. Been super busy. I have added a feature to the dev version that hopefully addresses what sw3b was looking for. Admins now have the option to "force" a cascade deletion without the user even being aware of it happening. When forcing a cascade deletion the same fail-safes will be in place, but users will not have the option, nor see the option, to select or unselect checkboxes in the cascade. Please review on test data and let me know if you find any issues.

sw3b’s picture

Status: Needs review » Reviewed & tested by the community

Good work ! And the way you put the settings it look great ! Thanks.

sprocketman’s picture

Status: Reviewed & tested by the community » Closed (fixed)