From: Rob Church Date: Sun, 5 Feb 2006 18:53:37 +0000 (+0000) Subject: Document new hook to avoid brutal stabbing by Vibber the Vicious X-Git-Tag: 1.6.0~373 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/journal.php?a=commitdiff_plain;h=1d24cd2354b5e4733ca6da2ab7f54bed7c703021;p=lhc%2Fweb%2Fwiklou.git Document new hook to avoid brutal stabbing by Vibber the Vicious --- diff --git a/docs/hooks.txt b/docs/hooks.txt index 3db2668612..f6f3cb9240 100644 --- a/docs/hooks.txt +++ b/docs/hooks.txt @@ -380,6 +380,12 @@ string $saveName: destination file name string $tempName: filesystem path to the temporary file for checks string &$error: output: HTML error to show if upload canceled by returning false +'UserCan': To interrupt the "user can do X to Y article" check +$title: Title object being checked against +$user : Current user object +$action: Action being checked +$result: Pointer to result returned if hook returns false + 'UserCreateForm': change to manipulate the login form $template: SimpleTemplate instance for the form