MediaWiki REL1_35
|
Stable to implement. More...
Public Member Functions | |
onEmailUser (&$to, &$from, &$subject, &$text, &$error) | |
This hook is called before sending email from one user to another. | |
Stable to implement.
Definition at line 13 of file EmailUserHook.php.
MediaWiki\Hook\EmailUserHook::onEmailUser | ( | & | $to, |
& | $from, | ||
& | $subject, | ||
& | $text, | ||
& | $error | ||
) |
This hook is called before sending email from one user to another.
MailAddress | &$to | MailAddress object of receiving user |
MailAddress | &$from | MailAddress object of sending user |
MailAddress | &$subject | subject of the mail |
string | &$text | text of the mail |
bool | Status | MessageSpecifier | array | &$error | Out-param for an error. Should be set to a Status object or boolean false. |
Implemented in MediaWiki\HookContainer\HookRunner.