Not a developer? Go to MovableType.com

Documentation

MT::BackupRestore::restore_asset

This callback is called when an asset’s physical file is restored.

Input Parameters

  • $cb - a reference to the current MT::Callback object handling this event.
  • $asset - a reference to the MT::Asset object that was restored. At the time this callback is invoked, the asset in question has already been assigned a new url and path.
  • $callback - a code reference which will print out the passed parameter. Callback method can use this to communicate with users.

Return Value

None.

Example Handler

sub restore_asset_handler {
    my ($cb, $asset, $callback) = @_;
}
Back

Leave a Comment