diff options
author | Evan Prodromou <evanprodromou@users.mediawiki.org> | 2004-11-27 23:57:55 +0000 |
---|---|---|
committer | Evan Prodromou <evanprodromou@users.mediawiki.org> | 2004-11-27 23:57:55 +0000 |
commit | 34ac5745f9d4634fc8800e363cb2060c4d30fd3a (patch) | |
tree | 0297d2157ea6f041659f183e19bed7448aebc7ec /docs | |
parent | 7a57bb56af450cc034c68e7279a70ba2be5601c4 (diff) | |
download | mediawikicore-34ac5745f9d4634fc8800e363cb2060c4d30fd3a.tar.gz mediawikicore-34ac5745f9d4634fc8800e363cb2060c4d30fd3a.zip |
Added event-hooking code for blocking users and IPs. Added a handler
to the Syslog extension for blocked users to test this event. Added
documentation for the event to hooks.doc.
Notes
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/6407
Diffstat (limited to 'docs')
-rw-r--r-- | docs/hooks.doc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/docs/hooks.doc b/docs/hooks.doc index 0e2d167fd29b..26e3fa4590a3 100644 --- a/docs/hooks.doc +++ b/docs/hooks.doc @@ -226,6 +226,14 @@ hooks than for "complete" hooks. This is a list of known events and parameters; please add to it if you're going to add events to the MediaWiki code. +'BlockIp': before an IP address or user is blocked +$block: the Block object about to be saved +$user: the user _doing_ the block (not the one being blocked) + +'BlockIpComplete': after an IP address or user is blocked +$block: the Block object that was saved +$user: the user who did the block (not the one being blocked) + 'UserLoginComplete': after a user has logged in $user: the user object that was created on login @@ -235,4 +243,3 @@ $user: the user object that is about to be logged out 'UserLogoutComplete': after a user has logged out $user: the user object _after_ logout (won't have name, ID, etc.) - |