Fix docs for GetUserBlock hooks
authorDaimona Eaytoy <daimona.wiki@gmail.com>
Sun, 20 Oct 2019 08:45:27 +0000 (10:45 +0200)
committerDaimona Eaytoy <daimona.wiki@gmail.com>
Sun, 20 Oct 2019 09:15:22 +0000 (09:15 +0000)
Change-Id: I93b64fb00477c0632a6fa3573800dd7609d25db0

docs/hooks.txt

index 4261b0b..a6d6c6c 100644 (file)
@@ -1730,6 +1730,9 @@ $context: IContextSource
 'GetUserBlock': Modify the block found by the block manager. This may be a
 single block or a composite block made from multiple blocks; the original
 blocks can be seen using CompositeBlock::getOriginalBlocks()
+$user: User targeted by the block
+$ip: string|null The IP of the current request if $user is the current user
+  and they're not exempted from IP blocks. Null otherwise.
 &$block: AbstractBlock object
 
 'getUserPermissionsErrors': Add a permissions error when permissions errors are