MediaWiki REL1_40
|
This is a hook handler interface, see docs/Hooks.md. More...
Inherited by MediaWiki\HookContainer\HookRunner.
Public Member Functions | |
onEmailUser (&$to, &$from, &$subject, &$text, &$error) | |
This hook is called before sending email from one user to another. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "EmailUser" to register handlers implementing this interface.
Definition at line 16 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.