Manual:Hooks/AbortMove
From MediaWiki.org
| AbortMove | |
|---|---|
| Available from version 1.12.0 Allows canceling the move of one title to another |
|
*Define function: |
function fnMyHook( $oldtitle, $newtitle, $user, &$error, $reason ) { ... }
|
*Attach hook: |
$wgHooks['AbortMove'][] = 'fnMyHook'; |
| 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 verion 1.13)