pre_delete_archive_file
This callback is invoked just prior to an archive file, a file that is generated by the combination of an Archive template and an Archive Map, is deleted.
Input Parameters
- $cb - a reference to the current
MT::Callbackobject handling this event. - $path - the absolute path on the local file system to the file being removed.
- $type - the archive type of the file being published, usually one of 'Index', 'Individual', 'Category', 'Daily', 'Monthly', or 'Weekly'.
- $entry - The entry object, if in reference to an individual archive. Undefined otherwise.
Return Value
None.
Example Handler
sub handler {
my ($cb, $path, $type, $entry) = @_;
# do something
}
This page is part of the Events and Callbacks in Movable Type
- Previous build_page
This page was last updated on 2008-10-01, 17:03.
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.