Not a developer? Go to MovableType.com

Documentation

predeletearchive_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::Callback object 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
}
Back

Leave a Comment