< Manual:Hooks
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: | public static function onArticleUpdateBeforeRedirect( $article, &$sectionanchor, &$extraq ) { ... }
|
Attach hook: | In extension.json:
{
"Hooks": {
"ArticleUpdateBeforeRedirect": "MyExtensionHooks::onArticleUpdateBeforeRedirect"
}
}
|
Called from: | File(s): EditPage.php |
Interface: | ArticleUpdateBeforeRedirectHook.php |
For more information about attaching hooks, see Manual:Hooks
For examples of extensions using this hook, see Category:ArticleUpdateBeforeRedirect extensions.
Details
- $article: the article
- &$sectionanchor: The section anchor link (e.g. "#overview" )
- &$extraq: Extra query parameters which can be added via hooked functions
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.