Not a developer? Go to MovableType.com

Documentation

MT::App::CMS::cmspostdelete.$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::Callback object handling this event.
  • $app - a reference to the MT::App::CMS object processing this request.
  • $obj - a reference to the MT::Object being 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.

Back