Document new hook to avoid brutal stabbing by Vibber the Vicious
authorRob Church <robchurch@users.mediawiki.org>
Sun, 5 Feb 2006 18:53:37 +0000 (18:53 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Sun, 5 Feb 2006 18:53:37 +0000 (18:53 +0000)
docs/hooks.txt

index 3db2668..f6f3cb9 100644 (file)
@@ -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