Manual:Hooks/MessagesPreLoad
From MediaWiki.org
| MessagesPreLoad | |
|---|---|
| Available from version 1.5.7 When loading a message from the database |
|
*Define function: |
function fnMyHook( $title, $message ) { ... }
|
*Attach hook: |
$wgHooks['MessagesPreLoad'][] = 'MyExtensionHooks::someExample'; |
| Called from: | MessageCache.php |
*For more information about attaching hooks, see Manual:Hooks.
*For examples of extensions using this hook, see Category:MessagesPreLoad extensions.
[edit] Details
- $title: title of the message (string)
- $message: value (string), change it to the message you want to define