MediaWiki 1.39.10
|
This is a hook handler interface, see docs/Hooks.md. More...
Public Member Functions | |
onAuthChangeFormFields ( $requests, $fieldInfo, &$formDescriptor, $action) | |
This hook is called after converting a field information array obtained from a set of AuthenticationRequest classes into a form descriptor; hooks can tweak the array to change how login etc. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "AuthChangeFormFields" to register handlers implementing this interface.
Definition at line 14 of file AuthChangeFormFieldsHook.php.
MediaWiki\SpecialPage\Hook\AuthChangeFormFieldsHook::onAuthChangeFormFields | ( | $requests, | |
$fieldInfo, | |||
& | $formDescriptor, | ||
$action ) |
This hook is called after converting a field information array obtained from a set of AuthenticationRequest classes into a form descriptor; hooks can tweak the array to change how login etc.
forms should look.
AuthenticationRequest[] | $requests | Array of AuthenticationRequests the fields are created from |
array | $fieldInfo | Field information array (union of all AuthenticationRequest::getFieldInfo() responses) |
array | &$formDescriptor | HTMLForm descriptor. The special key 'weight' can be set to change the order of the fields. |
string | $action | One of the AuthManager::ACTION_* constants |
Implemented in MediaWiki\HookContainer\HookRunner.