Manual:Hooks/LoadAllMessages

From mediawiki.org
Jump to navigation Jump to search
LoadAllMessages
Available from version 1.8.0
Removed in version 1.16.0
Called when $wgMessageCache->loadAllMessages() has been invoked, allows extensions to inject their own messages.
Define function:
public static function onLoadAllMessages(  ) { ... }
Attach hook:

In extension.json:

{
	"Hooks": {
		"LoadAllMessages": "MyExtensionHooks::onLoadAllMessages"
	}
}
Called from:File(s): cache/MessageCache.php
Interface:LoadAllMessagesHook.php

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

Details[edit]

Called when $wgMessageCache ->loadAllMessages() has been invoked, allows extensions to inject their own messages.