Manual:Hooks/TitleIsMovable

From MediaWiki.org
Jump to: navigation, search
TitleIsCssOrJsPage
Available from version 1.19.0 (r95753)
Called when determining if it is possible to move a page.

Define function:
public static function onTitleIsCssOrJsPage( Title $title, &$result ) { ... }

Attach hook:
$wgHooks['TitleIsCssOrJsPage'][] = 'MyExtensionHooks::onTitleIsCssOrJsPage';
Called from: Title.php

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


[edit] 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()

[edit] See Also

Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox