Manual:Hooks/UploadForm:getInitialPageText
Appearance
| UploadForm:getInitialPageText | |
|---|---|
| Available from version 1.31.0 After the initial page text for file uploads is generated, to allow it to be altered. | |
| Define function: | public static function onUploadForm_getInitialPageText( string &$pageText, array $msg, Config $config ) { ... }
|
| Attach hook: | In extension.json:
{
"Hooks": {
"UploadForm:getInitialPageText": "MediaWiki\\Extension\\MyExtension\\Hooks::onUploadFormgetInitialPageText"
}
}
|
| Called from: | File(s): Specials/SpecialUpload.php Function(s): getInitialPageText |
| Interface: | UploadForm_getInitialPageTextHook.php |
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:UploadForm:getInitialPageText extensions.
Details
[edit]&$pageText: the page text$msg: array of header messages$config: Config object