Document new hook UserCanSendEmail
authorBrion Vibber <brion@users.mediawiki.org>
Tue, 29 Jan 2008 00:31:26 +0000 (00:31 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Tue, 29 Jan 2008 00:31:26 +0000 (00:31 +0000)
docs/hooks.txt

index bf6ca62..bb25df9 100644 (file)
@@ -984,6 +984,11 @@ $action: Action being checked
 $result: Pointer to result returned if hook returns false. If null is returned,
  userCan checks are continued by internal code.
 
+'UserCanSendEmail': To override User::canSendEmail() permission check
+$user: User (object) whose permission is being checked
+&$canSend: bool set on input, can override on output
+
+
 'UserClearNewTalkNotification': called when clearing the "You have new messages!" message, return false to not delete it
 $user: User (object) that'll clear the message