< Manual:Hooks
TitleIsMovable
Available from version 1.19.0 (r95753, codereview)
Called when determining if it is possible to move a page.
Define function:
public static function onTitleIsMovable( Title $title, &$result ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"TitleIsMovable": "MyExtensionHooks::onTitleIsMovable"
	}
}
Called from: File(s): Title.php
Function(s): Title::isMovable()
Interface: TitleIsMovableHook.php

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

Details

Note that this hook is not called for interwiki pages or pages in immovable namespaces: for these, isMovable() always returns false.

  • $title: Title object that is being checked
  • &$result: Boolean; whether MediaWiki currently thinks this page is movable. Hooks may change this value to override the return value of Title::isMovable()

See also

  • Manual:Hooks/TitleIsKnown — Called when determining if a page exists.
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.