MediaWiki REL1_40
MediaWiki\Hook\UploadFormSourceDescriptorsHook Interface Reference

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

Inherited by MediaWiki\HookContainer\HookRunner.

Public Member Functions

 onUploadFormSourceDescriptors (&$descriptor, &$radio, $selectedSourceType)
 This hook is called after the standard source inputs have been added to the descriptor.
 

Detailed Description

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

Use the hook name "UploadFormSourceDescriptors" to register handlers implementing this interface.

Stability: stable
to implement

Definition at line 12 of file UploadFormSourceDescriptorsHook.php.

Member Function Documentation

◆ onUploadFormSourceDescriptors()

MediaWiki\Hook\UploadFormSourceDescriptorsHook::onUploadFormSourceDescriptors ( & $descriptor,
& $radio,
$selectedSourceType )

This hook is called after the standard source inputs have been added to the descriptor.

Since
1.35
Parameters
array&$descriptorThe HTMLForm descriptor
bool&$radioBoolean, if source type should be shown as radio button
string$selectedSourceType
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: