Manual:Hooks/ArticleSave

Details

 * $article: the article (Article object) being saved
 * $user: the user (User object) saving the article
 * $text: the new article text
 * $summary: the edit summary
 * $minor: minor edit flag
 * $watchthis: watch the page if, unwatch the page if  , do nothing if
 * $sectionanchor: not used
 * $flags: bitfield, see source code for details