< Manual:Hooks 
 
      | UploadFormInitDescriptor | |
|---|---|
| Available from version 1.16.0 Occurs after the descriptor for the upload form as been assembled. | |
| Define function: | public static function onUploadFormInitDescriptor( $descriptor ) { ... }
 | 
| Attach hook: | In extension.json: {
	"Hooks": {
		"UploadFormInitDescriptor": "MyExtensionHooks::onUploadFormInitDescriptor"
	}
}
 | 
| Called from: | File(s): specials/SpecialUpload.php | 
| Interface: | UploadFormInitDescriptorHook.php | 
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:UploadFormInitDescriptor extensions.
Details
- $descriptor: the HTMLForm descriptor
    This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.