MediaWiki REL1_37
MediaWiki\Hook\ActionModifyFormFieldsHook Interface Reference

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

Inheritance diagram for MediaWiki\Hook\ActionModifyFormFieldsHook:

Public Member Functions

 onActionModifyFormFields ( $name, &$fields, $article)
 This hook is called before creating an HTMLForm object for a page action.
 

Detailed Description

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

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

Stability: stable
to implement

Definition at line 14 of file ActionModifyFormFieldsHook.php.

Member Function Documentation

◆ onActionModifyFormFields()

MediaWiki\Hook\ActionModifyFormFieldsHook::onActionModifyFormFields (   $name,
$fields,
  $article 
)

This hook is called before creating an HTMLForm object for a page action.

Use this hook to change the fields on the form that will be generated.

Since
1.35
Parameters
string$nameName of the action
array&$fieldsHTMLForm descriptor array
Article$article
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: