MediaWiki  master
MediaWiki\Preferences\Hook\PreferencesFormPreSaveHook Interface Reference

Stable to implement. More...

Inheritance diagram for MediaWiki\Preferences\Hook\PreferencesFormPreSaveHook:

Public Member Functions

 onPreferencesFormPreSave ( $formData, $form, $user, &$result, $oldUserOptions)
 Use this hook to override preferences being saved. More...

Detailed Description

Stable to implement.

Definition at line 12 of file PreferencesFormPreSaveHook.php.

Member Function Documentation

◆ onPreferencesFormPreSave()

MediaWiki\Preferences\Hook\PreferencesFormPreSaveHook::onPreferencesFormPreSave (   $formData,

Use this hook to override preferences being saved.

array$formDataArray of user submitted data
HTMLForm$formHTMLForm object, also a ContextSource
User$userUser with preferences to be saved
bool&$resultBoolean indicating success
array$oldUserOptionsArray with user's old options (before save)
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: