3

I have a Drupal 7 site where authenticated users can create a webpage to raise money for a charity. They can add a picture from the media library using the media browser. However, if they delete their page, this deletes the thumbnail and the library image from the db and site.

I've tried the File Lock module, but that doesn't work. I've set the user permissions to where the images cannot be deleted; that doesn't work. The images are used in other places as well as the need to keep them library for future users.

Any suggestions?

1

You could try this module:

Soft delete

This module allows selected users, based on a permission, to soft delete nodes. To users the operation looks like delete but the node is unpublished. It's useful if you want to prevent accidental deletes or bring back content that wasn't supposed to be deleted.

Note that this is a very simple module, adding just a tab called Delete next to View and Edit on nodes that the user can unpublish. A more advanced and customizable alternative is the Content unpublish module.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.