Jump to content

Hook on image delete


fraga
 Share

Recommended Posts

Hi,

currently working on my first module. I want to split large images into smaller tiles and display those tiles via a Js-Map like Leaflet.
I already finished up all the main parts. I added an image action which takes the image name and creates a corresponding folder in which all the tiles are stored.

Currently the deletion of the folder is handled with just another image action.
I would want to automatically delete the folder and the tiles when the main image is deleted from the post. How could I achieve that?

(If you want to take a look the source-code can be found here: https://github.com/tri-fraga/ImageTiler/blob/master/ImageTiler.module Would love some feedback ?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...