Content-Length: 55213 | pFad | http://www.mediawiki.org/wiki/Manual:Hooks/MovePageIsValidMove

Manual:Hooks/MovePageIsValidMove - MediaWiki Jump to content

Manual:Hooks/MovePageIsValidMove

From mediawiki.org
MovePageIsValidMove
Available from version 1.25.0
Specify whether a page can be moved for technical reasons.
Define function:
public static function onMovePageIsValidMove( Title $oldTitle, Title $newTitle, Status $status ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"MovePageIsValidMove": "MediaWiki\\Extension\\MyExtension\\Hooks::onMovePageIsValidMove"
	}
}
Called from: File(s): MovePage.php
Interface: MovePageIsValidMoveHook.php

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

Details

[edit]
  • $oldTitle: Title object of the current (old) location
  • $newTitle: Title object of the new location
  • $status: Status object to pass error messages to








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://www.mediawiki.org/wiki/Manual:Hooks/MovePageIsValidMove

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy