Is there an event fired when a content item is deleted?

Have a programming question regarding your component, plug-in, extension or core hacks? Have an interesting tidbit, FAQ or programming tip you’d like to share? This is the place for you.

Moderators: tjay, seadap, Rogue4ngel, matthewhayashida

Post Reply
permalink
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Tue Feb 19, 2008 5:36 pm

Is there an event fired when a content item is deleted?

Post by permalink » Mon Feb 25, 2008 11:55 pm

I am creating a component that adds fields to a content items using a relation table. This simple M2M relation table is fields_content and it relates content ids to field ids from a fields table. I would like to be able to clear out the relationship table of old content ids when the content is deleted. Is there an event that is fired when a content item is deleted/modified/changed? Or any other way of deleting records from my relation table when the content item no longer exists?
Thanks.

Post Reply