From 24cf0360faa561f028c2cebf2af7e1d18f4439d7 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Tue, 29 Jan 2008 00:31:26 +0000 Subject: [PATCH] Document new hook UserCanSendEmail --- docs/hooks.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/hooks.txt b/docs/hooks.txt index bf6ca62daa..bb25df90e8 100644 --- a/docs/hooks.txt +++ b/docs/hooks.txt @@ -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 -- 2.20.1