Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F1430558
PreferencesFormPreSaveHook.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
921 B
Referenced Files
None
Subscribers
None
PreferencesFormPreSaveHook.php
View Options
<?php
namespace
MediaWiki\Preferences\Hook
;
use
MediaWiki\HTMLForm\HTMLForm
;
use
MediaWiki\User\User
;
/**
* This is a hook handler interface, see docs/Hooks.md.
* Use the hook name "PreferencesFormPreSave" to register handlers implementing this interface.
*
* @stable to implement
* @ingroup Hooks
*/
interface
PreferencesFormPreSaveHook
{
/**
* Use this hook to override preferences being saved.
*
* @since 1.35
*
* @param array $formData Array of user submitted data
* @param HTMLForm $form HTMLForm object, also a ContextSource
* @param User $user User with preferences to be saved
* @param bool &$result Boolean indicating success
* @param array $oldUserOptions Array with user's old options (before save)
* @return bool|void True or no return value to continue or false to abort
*/
public
function
onPreferencesFormPreSave
(
$formData
,
$form
,
$user
,
&
$result
,
$oldUserOptions
);
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, May 16, 19:14 (5 h, 55 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
26/d3/807679ac934baba434a12481f84a
Default Alt Text
PreferencesFormPreSaveHook.php (921 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment