Manual:Hooks/NamespaceIsMovable
From MediaWiki.org
| NamespaceIsMovable | |
|---|---|
| Available from version 1.20.0 Called when determining if it is possible to move pages in a namespace. |
|
Define function: |
public static function onNamespaceIsMovable( $index, $result ) { ... }
|
Attach hook: |
$wgHooks['NamespaceIsMovable'][] = 'MyExtensionHooks::onNamespaceIsMovable'; |
| Called from: | Namespace.php |
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:NamespaceIsMovable extensions.
Details [edit]
- $index: Integer; the index of the namespace being checked.
- $result: Boolean; whether MediaWiki currently thinks that pages in this namespace are movable. Hooks may change this value to override the return value of MWNamespace::isMovable().