Prevent removing action of content item

Topics: Customizing Orchard, General, Writing modules
Jan 6, 2013 at 11:55 AM
Edited Jan 6, 2013 at 12:07 PM

Is it possible to prevent a removal of a content item with a module?

I would like to create a module that first checks if there is a content item that have an anchor to this content item and cancel the removal if there are links to this content item. I can intercept the removing event in the contenthandler and check for links, but how can I cancel the rest of the process?