Manual:Hooks/MessageCacheReplace
From MediaWiki.org
| MessageCacheReplace | |
|---|---|
| Available from version 1.15.0 When a message page is changed. Useful for updating caches. |
|
Define function: |
public static function onMessageCacheReplace( $title, $text ) { ... }
|
Attach hook: |
$wgHooks['MessageCacheReplace'][] = 'MyExtensionHooks::onMessageCacheReplace'; |
| Called from: | MessageCache.php |
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:MessageCacheReplace extensions.
[edit] Details
- $title: name of the page changed.
- $text: new contents of the page.