MediaWiki
REL1_35
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
12
interface
PreferencesFormPreSaveHook
{
25
public
function
onPreferencesFormPreSave
( $formData, $form, $user, &$result,
26
$oldUserOptions
27
);
28
}
HTMLForm
Object handling generic submission, CSRF protection, layout and other logic for UI forms in a reusabl...
Definition
HTMLForm.php:135
User
The User object encapsulates all of the user-specific settings (user_id, name, rights,...
Definition
User.php:60
MediaWiki\Preferences\Hook\PreferencesFormPreSaveHook
Stable to implement.
Definition
PreferencesFormPreSaveHook.php:12
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 Sat Apr 6 2024 00:07:39 for MediaWiki by
1.9.8