Manual:Hooks/SpecialExportGetExtraPages

From Linux Web Expert

SpecialExportGetExtraPages
<translate> Available from <tvar name=1><translate> version <tvar (Gerrit change 724228)</tvar></translate>
Add extra pages to the list of pages to export.
<translate> Define function:</translate>
public static function onSpecialExportGetExtraPages( array $inputPages, array &$extraPages ) { ... }
<translate> Attach hook:</translate> <translate> In <tvar name=1>extension.json</tvar>:</translate>
{
	"Hooks": {
		"SpecialExportGetExtraPages": "MediaWiki\\Extension\\MyExtension\\Hooks::onSpecialExportGetExtraPages"
	}
}
<translate> Called from:</translate> <translate> File(s):</translate> specials/SpecialExport.php
<translate> Function(s):</translate> getExtraPages
<translate> Interface:</translate> SpecialExportGetExtraPagesHook.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:SpecialExportGetExtraPages extensions</tvar>.</translate>