Manual:Hooks/SetupUserMessageArticle
From MediaWiki.org
|
|
This feature has been deprecated and should not be used with current versions of MediaWiki. This feature was deprecated (or possibly removed completely) in version 1.18.0. |
| SetupUserMessageArticle | |
|---|---|
| Available from version 1.17.0 Removed in version 1.18.0 Called in User::leaveUserMessage() before anything has been posted to the article. |
|
Define function: |
public static function onSetupUserMessageArticle( $user, &$article, $subject, $text, $signature, $summary, $editor ) { ... }
|
Attach hook: |
$wgHooks['SetupUserMessageArticle'][] = 'MyExtensionHooks::onSetupUserMessageArticle'; |
| Called from: | User.php |
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:SetupUserMessageArticle extensions.
[edit] Details
- $user: The user who we left the message for.
- &$article: The article that will be posted to.
- $subject: The subject of the message
- $text: The text of the message.
- $signature: The signature we used.
- $summary: The edit summary.
- $editor: The editor that performed the edit.