Manual:Hooks/AncientPagesQuery
From Linux Web Expert
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>