< Manual:Hooks
| FileUndeleteComplete | |
|---|---|
| Available from version 1.13.0 When a file is undeleted | |
| Define function: | public static function onFileUndeleteComplete( $title, $fileVersions, $user, $reason ) { ... }
|
| Attach hook: | In extension.json:
{
"Hooks": {
"FileUndeleteComplete": "MyExtensionHooks::onFileUndeleteComplete"
}
}
|
| Called from: | File(s): specials/SpecialUndelete.php |
| Interface: | FileUndeleteCompleteHook.php |
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:FileUndeleteComplete extensions.
Details
- $title: title object to the file
- $fileVersions: array of undeleted versions. Empty if all versions were restored
- $user: user who performed the undeletion
- $reason: reason
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.