Manual:Hooks/AncientPagesQuery

From Linux Web Expert

Revision as of 07:20, 27 June 2019 by imported>Shirayuki (fix)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

AncientPagesQuery
<translate> Available from <tvar name=1><translate> version <tvar (Gerrit change 456389)</tvar></translate>
Allows modifying the query used by Special:AncientPages.
<translate> Define function:</translate>
public static function onAncientPagesQuery( &$tables, &$conds, &$joinConds ) { ... }
<translate> Attach hook:</translate> <translate> In <tvar name=1>extension.json</tvar>:</translate>
{
	"Hooks": {
		"AncientPagesQuery": "MediaWiki\\Extension\\MyExtension\\Hooks::onAncientPagesQuery"
	}
}
<translate> Called from:</translate> <translate> File(s):</translate> specials/SpecialAncientpages.php
<translate> Function(s):</translate> getQueryInfo
<translate> Interface:</translate> AncientPagesQueryHook.php

<translate> For more information about attaching hooks, see <tvar name=1>Manual:Hooks </tvar>.</translate>
<translate> For examples of extensions using this hook, see <tvar name=cat>Category:AncientPagesQuery extensions</tvar>.</translate>