Manual:Hooks/MessageNotInMwNs
From MediaWiki.org
![]() |
This feature was removed completely in version 1.16.0. |
MessageNotInMwNs | |
---|---|
Available from version 1.16.0 Removed in version 1.16.0 When trying to get a message that isn't found in the MediaWiki namespace (but before checking the message files) |
|
Define function: |
public static function onMessageNotInMwNs( &$message, $lckey, $langcode, $isFullKey ) { ... } |
Attach hook: |
$wgHooks['MessageNotInMwNs'][] = 'MyExtensionHooks::onMessageNotInMwNs'; |
Called from: | File(s): MessageCache.php |
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:MessageNotInMwNs extensions.
![]() |
This hook has been removed in 1.16, and may never be in a released version |
Details[edit | edit source]
- &$message: message's content; can be changed
- $lckey: message's name
- $langcode: language code
- $isFullKey: specifies whether $lckey is a two part key "msg/lang"