< Manual:Hooks
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": "MyExtensionHooks::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

  • $oldTitle: Title object of the current (old) location
  • $newTitle: Title object of the new location
  • $status: Status object to pass error messages to
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.