MediaWiki REL1_37
|
This is a hook handler interface, see docs/Hooks.md. More...
Public Member Functions | |
onFileDeleteComplete ( $file, $oldimage, $article, $user, $reason) | |
This hook is called when a file is deleted. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "FileDeleteComplete" to register handlers implementing this interface.
Definition at line 16 of file FileDeleteCompleteHook.php.
MediaWiki\Hook\FileDeleteCompleteHook::onFileDeleteComplete | ( | $file, | |
$oldimage, | |||
$article, | |||
$user, | |||
$reason | |||
) |
This hook is called when a file is deleted.
LocalFile | $file | Reference to the deleted file |
string | $oldimage | In case of the deletion of an old image, the name of the old file |
WikiFilePage | $article | In case all revisions of the file are deleted, a reference to the WikiFilePage associated with the file |
User | $user | User who performed the deletion |
string | $reason |
Implemented in MediaWiki\HookContainer\HookRunner.