Last modified: 2014-02-12 23:32:50 UTC
Currently there are two hooks for when a user is blocked in SpecialBlock, BlockIp and BlockIpComplete, but none for unblocking a user in SpecialUnblock. So if an extension needs to reliably add and remove information about user blocks that extension will never be able to hook in to see when a user block is removed through SpecialUnblock. At a minimum a similar UnblockIpComplete hook would be ideal.
Were you hoping to be able to use this hook in any particular extension? What parameters does it need? Just performer, target and reason?
I planned to use this in an authentication extension that obeys blocking rules. This could be useful in the OpenID extension and other people that need to spreading blocking rules across wiki farms. Passing in $performer and $block should be ideal. The $block contains the target and other relevant data. I believe the new unblock reason would have to be passed in since the existing $block would contain the original reason for blocking. Sample documentation: 'UnblockIpComplete': after an IP address or user is unblocked $performer: The user performing the unblock $block: The Block object that was modified or deleted $reason: The new reason to unblocking the block target.