Manual:Hooks/FileUndeleteComplete
From MediaWiki.org
| FileUndeleteComplete | |
|---|---|
| Available from version 1.13.0 When a file is undeleted |
|
*Define function: |
function fnMyHook( $file, $fileVersions, $user, $reason ) { ... }
|
*Attach hook: |
$wgHooks['FileUndeleteComplete'][] = 'MyExtensionHooks::someExample'; |
| Called from: | SpecialUndelete.php |
*For more information about attaching hooks, see Manual:Hooks.
*For examples of extensions using this hook, see Category:FileUndeleteComplete extensions.
[edit] 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
