Manual:Hooks/UploadFormSourceDescriptors

From MediaWiki.org
Jump to: navigation, search
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:
$wgHooks['UploadFormSourceDescriptors'][] = 'MyExtensionHooks::onUploadFormSourceDescriptors';
Called from: SpecialUpload.php

For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:UploadFormSourceDescriptors extensions.


[edit] Details

  • $descriptor: the HTMLForm descriptor
Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox