Manual:Hooks/ArticleInsertComplete
From MediaWiki.org
| ArticleInsertComplete | |
|---|---|
| Available from version 1.6.0 Occurs after a new article has been created |
|
*Define function: |
function fnMyHook(&$article, &$user, &$text, &$summary, &$minoredit, &$watchthis, &$sectionanchor, &$flags, &$revision) { ... }
|
*Attach hook: |
$wgHooks['ArticleInsertComplete'][] = 'fnMyHook'; |
| Called from: | 1.6+ - Article.php: Article::doEdit() |
*For more information about attaching hooks, see Manual:Hooks.
*For examples of extensions using this hook, see Category:ArticleInsertComplete extensions.
[edit] Details
- $article: the article (object) saved
- $user: the user (object) who saved the article
- $text: the new article text
- $summary: the article summary (comment)
- $isminor: minor flag
- $iswatch: not used as of 1.8
- $section: not used as of 1.8
- $flags: bitfield, see source code for details
- $revision: The newly inserted revision object (as of 1.11.0)

