Manual:Hooks/SpecialMovepageAfterMove

From Linux Web Expert

The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
SpecialMovepageAfterMove
<translate> Available from <tvar name=1><translate> version <tvar </tvar></translate>
Called after moving page.
<translate> Define function:</translate>
public static function onSpecialMovepageAfterMove( &$form, &$ot , &$nt ) { ... }
<translate> Attach hook:</translate> <translate> In <tvar name=1>extension.json</tvar>:</translate>
{
	"Hooks": {
		"SpecialMovepageAfterMove": "MediaWiki\\Extension\\MyExtension\\Hooks::onSpecialMovepageAfterMove"
	}
}
<translate> Called from:</translate> <translate> File(s):</translate> specials/SpecialMovepage.php
<translate> Interface:</translate> SpecialMovepageAfterMoveHook.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:SpecialMovepageAfterMove extensions</tvar>.</translate>

Details

This hook may be used to execute additional functions after a page has been moved.

Arguments

  • &$form: MovePageForm
  • &$ot: Title object of the old article (moved from)
  • &$nt: Title object of the new article (moved to)

See also