Manual:Hooks/UploadFormSourceDescriptors
Appearance
UploadFormSourceDescriptors | |
---|---|
Available from version 1.16.0 Occurs after the standard source inputs have been added to the descriptor. | |
Define function: | public static function onUploadFormSourceDescriptors( $descriptor ) { ... }
|
Attach hook: | In extension.json:
{
"Hooks": {
"UploadFormSourceDescriptors": "MediaWiki\\Extension\\MyExtension\\Hooks::onUploadFormSourceDescriptors"
}
}
|
Called from: | File(s): specials/SpecialUpload.php |
Interface: | UploadFormSourceDescriptorsHook.php |
For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:UploadFormSourceDescriptors extensions.
Details
[edit]- $descriptor: the HTMLForm descriptor