hooks to prevent deletion of image if it is already in use

panis - November 10, 2009 - 02:19
Project:IMCE
Version:HEAD
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

currently used in imceimage - it would be very useful to prevent the file from being deleted if it is being used. Would it be possible to add hooks called before image deletion or updates?

If hook returns an error - then do not delete the image and display error message to user?

thanks.

#1

ufku - November 20, 2009 - 19:40

I can review and commit any kindly provided patch with pleasure. This may even go into the current branch.

 
 

Drupal is a registered trademark of Dries Buytaert.