Manual:Hooks/UnblockUserComplete

From Linux Web Expert

UnblockUserComplete
<translate> Available from <tvar name=1><translate> version <tvar (Gerrit change 329725)</tvar></translate>
Occurs after the request to unblock an IP or user has been processed
<translate> Define function:</translate>
public static function onUnblockUserComplete( Block $block, User $user ) { ... }
<translate> Attach hook:</translate> <translate> In <tvar name=1>extension.json</tvar>:</translate>
{
	"Hooks": {
		"UnblockUserComplete": "MediaWiki\\Extension\\MyExtension\\Hooks::onUnblockUserComplete"
	}
}
<translate> Called from:</translate> <translate> File(s):</translate> specials/SpecialUnblock.php
<translate> Interface:</translate> UnblockUserCompleteHook.php

<translate> For more information about attaching hooks, see <tvar name=1>Manual:Hooks </tvar>.</translate>
<translate> For examples of extensions using this hook, see <tvar name=cat>Category:UnblockUserComplete extensions</tvar>.</translate>

Details

  • $block: the Block object that was saved
  • $user: the user who performed the unblock (not the one being unblocked)

See also