Manual:Hooks/UpdateUserMailerFormattedPageStatus

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": "MyExtensionHooks::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.


DetailsEdit

  • &$formattedPageStatus: Array of valid page states