From: Brion Vibber Date: Tue, 29 Jan 2008 00:31:26 +0000 (+0000) Subject: Document new hook UserCanSendEmail X-Git-Tag: 1.31.0-rc.0~49735 X-Git-Url: http://git.cyclocoop.org/ecrire?a=commitdiff_plain;h=24cf0360faa561f028c2cebf2af7e1d18f4439d7;p=lhc%2Fweb%2Fwiklou.git Document new hook UserCanSendEmail --- 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