MediaWiki REL1_35
MediaWiki\Hook\ActionModifyFormFieldsHook Interface Reference

Stable to implement. 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

Stable to implement.

Definition at line 11 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: