MediaWiki REL1_35
MediaWiki\Hook\EmailUserHook Interface Reference

Stable to implement. More...

Inheritance diagram for MediaWiki\Hook\EmailUserHook:

Public Member Functions

 onEmailUser (&$to, &$from, &$subject, &$text, &$error)
 This hook is called before sending email from one user to another.
 

Detailed Description

Stable to implement.

Definition at line 13 of file EmailUserHook.php.

Member Function Documentation

◆ onEmailUser()

MediaWiki\Hook\EmailUserHook::onEmailUser ( $to,
$from,
$subject,
$text,
$error 
)

This hook is called before sending email from one user to another.

Since
1.35
Parameters
MailAddress&$toMailAddress object of receiving user
MailAddress&$fromMailAddress object of sending user
MailAddress&$subjectsubject of the mail
string&$texttext of the mail
bool | Status | MessageSpecifier | array&$errorOut-param for an error. Should be set to a Status object or boolean false.
Returns
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: