Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F2752250
UserSendConfirmationMailHook.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
UserSendConfirmationMailHook.php
View Options
<?php
namespace
MediaWiki\User\Hook
;
use
MediaWiki\User\User
;
/**
* This is a hook handler interface, see docs/Hooks.md.
* Use the hook name "UserSendConfirmationMail" to register handlers implementing this interface.
*
* @stable to implement
* @ingroup Hooks
*/
interface
UserSendConfirmationMailHook
{
/**
* This hook is called just before a confirmation email is sent to a user.
*
* Hook handlers can modify the email that will be sent.
*
* @since 1.35
*
* @param User $user The User for which the confirmation email is going to be sent
* @param array &$mail Associative array describing the email, with the following keys:
* - subject: Subject line of the email
* - body: Email body. Can be a string, or an array with keys 'text' and 'html'
* - from: User object, or null meaning $wgPasswordSender will be used
* - replyTo: MailAddress object or null
* @param array $info Associative array with additional information:
* - type: 'created' if the user's account was just created; 'set' if the user
* set an email address when they previously didn't have one; 'changed' if
* the user had an email address and changed it
* - ip: The IP address from which the user set/changed their email address
* - confirmURL: URL the user should visit to confirm their email
* - invalidateURL: URL the user should visit to invalidate confirmURL
* - expiration: time and date when confirmURL expires
* @return bool|void True or no return value to continue or false to abort
*/
public
function
onUserSendConfirmationMail
(
$user
,
&
$mail
,
$info
);
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Fri, Jul 3, 19:47 (1 d, 5 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
ff/01/c659ca21e780d5dc0b25bf9c091d
Default Alt Text
UserSendConfirmationMailHook.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment