MediaWiki
REL1_40
PreferencesFormPreSaveHook.php
Go to the documentation of this file.
1
<?php
2
3
namespace
MediaWiki\Preferences\Hook
;
4
5
use
HTMLForm
;
6
use
User
;
7
15
interface
PreferencesFormPreSaveHook
{
28
public
function
onPreferencesFormPreSave
( $formData, $form, $user, &$result,
29
$oldUserOptions
30
);
31
}
HTMLForm
Object handling generic submission, CSRF protection, layout and other logic for UI forms in a reusabl...
Definition
HTMLForm.php:153
User
internal since 1.36
Definition
User.php:71
MediaWiki\Preferences\Hook\PreferencesFormPreSaveHook
This is a hook handler interface, see docs/Hooks.md.
Definition
PreferencesFormPreSaveHook.php:15
MediaWiki\Preferences\Hook\PreferencesFormPreSaveHook\onPreferencesFormPreSave
onPreferencesFormPreSave( $formData, $form, $user, &$result, $oldUserOptions)
Use this hook to override preferences being saved.
MediaWiki\Preferences\Hook
Definition
GetPreferencesHook.php:3
includes
preferences
Hook
PreferencesFormPreSaveHook.php
Generated on Thu Jun 27 2024 14:03:48 for MediaWiki by
1.10.0