Manual:Hooks/AbortMove
From MediaWiki.org
| AbortMove | |
|---|---|
| Available from version 1.12.0 Allows canceling the move of one title to another |
|
Define function: |
public static function onAbortMove( Title $oldTitle, Title $newTitle, User $user, &$error, $reason ) { ... }
|
Attach hook: |
$wgHooks['AbortMove'][] = 'MyExtensionHooks::onAbortMove'; |
| Called from: | Title.php |
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:AbortMove extensions.
[edit] Details
- $oldtitle: Title that is being moved
- $newtitle: Destination Title
- $user: User requesting the move
- &$error: Error message (if function returns false)
- $reason: Reason for the move (added in version 1.13)