Manual:Hooks/AbortEmailNotification
From Linux Web Expert
AbortEmailNotification | |
---|---|
<translate> Available from <tvar name=1><translate> version <tvar </tvar></translate> Can be used to cancel email notifications for an edit. | |
<translate> Define function:</translate> | public static function onAbortEmailNotification( $editor, $title, $rc ) { ... }
|
<translate> Attach hook:</translate> | <translate> In <tvar name=1>extension.json</tvar>:</translate>
{
"Hooks": {
"AbortEmailNotification": "MediaWiki\\Extension\\MyExtension\\Hooks::onAbortEmailNotification"
}
}
|
<translate> Called from:</translate> | <translate> File(s):</translate> changes/RecentChange.php |
<translate> Interface:</translate> | AbortEmailNotificationHook.php |
<translate> For more information about attaching hooks, see <tvar name=1>Manual:Hooks </tvar>.</translate>
<translate> For examples of extensions using this hook, see <tvar name=cat>Category:AbortEmailNotification extensions</tvar>.</translate>
Details
Return true to send email notification, false to cancel sending the notification.
- $editor: The User who made the change.
- $title: The Title of the page that was edited.
- $rc: The current RecentChange object. (1.24+)