A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.mediawiki.org/wiki/Manual:Hooks/ArticleUndelete below:

Manual:Hooks/ArticleUndelete - MediaWiki

Deprecated: This feature is deprecated and should no longer be used, however it is still available for reasons of backwards compatibility . ArticleUndelete Available from version 1.9.1
When one or more revisions of an article are restored
Define function:
public static function onArticleUndelete( MediaWiki\Title\Title $title, bool $create, string $comment, int $oldPageId, array $restoredPages ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"ArticleUndelete": "MediaWiki\\Extension\\MyExtension\\Hooks::onArticleUndelete"
	}
}
Called from: File(s): page/PageArchive.php Interface: ArticleUndeleteHook.php

For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:ArticleUndelete extensions.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4