Extension:NewUserMessage/CreateNewUserMessage
From MediaWiki.org
CreateNewUserMessage | |
---|---|
Available from version ??? Override the native NewUserMessage message |
|
Define function: |
public static function onCreateNewUserMessage( $user, $editor, $editSummary, $substitute, $signature ) { ... } |
Attach hook: |
$wgHooks['CreateNewUserMessage'][] = 'MyExtensionHooks::onCreateNewUserMessage'; |
Called from: | File(s): NewUserMessage.class.php |
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:CreateNewUserMessage extensions.
Details[edit | edit source]
- $user: the user object who's talk page is being created
- $editor: the user that we'll use to leave the message
- $editSummary: the edit summary
- $substitute: boolean, true if template substitution is to take place
- $signature: signature