MT::App::CMS::cms_post_delete.$type
This callback is invoked after an object has been deleted, and after all other operations have taken place in response to that object being deleted (removing related comments for entries for example). This callback is invoked as the very last step following an object's removal. In this callback $type refers to the object type.
Input Parameters
- $cb - a reference to the current
MT::Callbackobject handling this event. - $app - a reference to the
MT::App::CMSobject processing this request. - $obj - a reference to the
MT::Objectbeing deleted.
Return Value
None.
Example Handler
sub handler {
my ($cb, $app, $obj) = @_;
# do something
}
Note: this is different from MT::ObjectName.post_delete in that it is called after other related records have been removed and/or processed as well.
This page is part of the Events and Callbacks in Movable Type
- Previous CMS Callbacks
Leave a note
Have a question? Please use the MT Forums. Notes submitted on documentation should pertain to tips & hints regarding documentation. Your note may be removed once its contents have been integrated into the body of the page.