Movatterモバイル変換


[0]ホーム

URL:


Jump to content
MediaWiki
Search

Manual:Hooks/RenameUserWarning

From mediawiki.org
<Manual:Hooks
RenameUserWarning
Available fromversion 1.40.0
Get warnings when renaming an user
Define function:
publicstaticfunctiononRenameUserWarning($oldName,$newName,&$warnings){...}
Attach hook:Inextension.json:
{"Hooks":{"RenameUserWarning":"MediaWiki\\Extension\\MyExtension\\Hooks::onRenameUserWarning"}}
Called from:File(s):specials/SpecialRenameUser.php
Function(s):execute
Interface:RenameUserWarningHook.php

For more information about attaching hooks, seeManual:Hooks.
For examples of extensions using this hook, seeCategory:RenameUserWarning extensions.

Details

[edit]
  • $oldName: old name
  • $newName: new name
  • &$warnings: array of warning (messages names, may be with parameters)
Retrieved from "https://www.mediawiki.org/w/index.php?title=Manual:Hooks/RenameUserWarning&oldid=6344518"
Categories:

[8]ページ先頭

©2009-2025 Movatter.jp