Manual:Hooks/ArticleUpdateBeforeRedirect
From MediaWiki.org
| ArticleUpdateBeforeRedirect | |
|---|---|
| Available from version 1.11.0 After a page is updated (usually on save), before the user is redirected back to the page |
|
*Define function: |
function fnMyHook( &$article, &$sectionanchor, &$extraq ) { ... }
|
*Attach hook: |
$wgHooks['ArticleUpdateBeforeRedirect'][] = 'fnMyHook'; |
| Called from: | Article.php |
*For more information about attaching hooks, see Manual:Hooks.
*For examples of extensions using this hook, see Category:ArticleUpdateBeforeRedirect extensions.
[edit] Details
- &$article: the article
- &$sectionanchor: The section anchor link (e.g. "#overview" )
- &$extraq: Extra query parameters which can be added via hooked functions