Jump to content

Manual:Hooks/UpdateUserMailerFormattedPageStatus

From mediawiki.org
UpdateUserMailerFormattedPageStatus
Available from version 1.21.0 (Gerrit change 7986)
Occurs before a notification email gets sent.
Define function:
public static function onUpdateUserMailerFormattedPageStatus( array &$formattedPageStatus ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"UpdateUserMailerFormattedPageStatus": "MediaWiki\\Extension\\MyExtension\\Hooks::onUpdateUserMailerFormattedPageStatus"
	}
}
Called from: File(s): mail/EmailNotification.php
Function(s): actuallyNotifyOnPageChange
Interface: UpdateUserMailerFormattedPageStatusHook.php

For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:UpdateUserMailerFormattedPageStatus extensions.


Details

[edit]
  • &$formattedPageStatus: Array of valid page states