delete records from uploads and associated images

3 posts by 2 authors in: Forums > CMS Builder
Last Post: April 29, 2014   (RSS)

By kitsguru - April 28, 2014

I am building a Contest for Artists app. There is a charge for the contest entry so I am utilizing the shopping cart plugin and customizing it myself. Everything is working as expected by I have one minor housekeeping issue.

If the Entry is not paid for, the cart_item record is automatically deleted by the cart after 24 hours which is fine. I have the contest_entry record deleting automatically as well. What I would like to do is also delete the associated _upload record and its files from the server.

I know that if I delete the contest_entry record through the administrator that the _upload record and the files including thumbs are deleted.

Is there a function call I can hook into to perform this operation or any other suggestions are welcome.

Jeff Shields

By Damon - April 29, 2014

Thanks for the update!

Cheers,
Damon Edis - interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/