MediaWiki  master
MediaWiki\Hook\UploadForm_initialHook Interface Reference

This is a hook handler interface, see docs/Hooks.md. More...

Inheritance diagram for MediaWiki\Hook\UploadForm_initialHook:

Public Member Functions

 onUploadForm_initial ( $upload)
 This hook is called before the upload form is generated. More...
 

Detailed Description

This is a hook handler interface, see docs/Hooks.md.

Use the hook name "UploadForm:initial" to register handlers implementing this interface.

Stable to implement

Definition at line 15 of file UploadForm_initialHook.php.

Member Function Documentation

◆ onUploadForm_initial()

MediaWiki\Hook\UploadForm_initialHook::onUploadForm_initial (   $upload)

This hook is called before the upload form is generated.

Extensions might set the member-variables $uploadFormTextTop and $uploadFormTextAfterSummary to inject text (HTML) either before or after the editform.

Since
1.35
Parameters
SpecialUpload$upload
Returns
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\HookContainer\HookRunner.


The documentation for this interface was generated from the following file: