Add 'UnblockUser' and 'UnblockUserComplete' hooks to Special:Unblock
authorJustin Du <justin.d128@gmail.com>
Sat, 31 Dec 2016 01:29:34 +0000 (19:29 -0600)
committerJustin Du <justin.d128@gmail.com>
Sat, 31 Dec 2016 01:34:20 +0000 (19:34 -0600)
commitf5aef17ef38a3d6fa70213a303933705d43d4f94
treed4bb7b62bdce67ee9327cc1c85856eb227b1c3a4
parent529d946e694eb020f137efa31907e28088e2e40d
Add 'UnblockUser' and 'UnblockUserComplete' hooks to Special:Unblock

Currently, there are two hooks ('BlockIP' and 'BlockIPComplete') that run when a user or IP is blocked in Special:Block, but no similar hooks when a user is unblocked in Special:Unblock. Adding these two hooks allows an extension to add and remove criteria about a user/IP unblock before it occurs and for possible action after an unblock is completed.

Bug: T50546
Change-Id: I9d9888dc5f1bb6a8bc62e90e6a423bf56b05173b
docs/hooks.txt
includes/specials/SpecialUnblock.php