Manual:Hooks/UpdateUserMailerFormattedPageStatus

From MediaWiki.org
Jump to navigation Jump to search
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"
	}
}

For MediaWiki ≤1.25:

$wgHooks['UpdateUserMailerFormattedPageStatus'][] = 'MyExtensionHooks::onUpdateUserMailerFormattedPageStatus';
Called from:File(s): mail/EmailNotification.php
Function(s): actuallyNotifyOnPageChange

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