aboutsummaryrefslogtreecommitdiffstats
path: root/docs/hooks.txt
diff options
context:
space:
mode:
Diffstat (limited to 'docs/hooks.txt')
-rw-r--r--docs/hooks.txt14
1 files changed, 13 insertions, 1 deletions
diff --git a/docs/hooks.txt b/docs/hooks.txt
index 92fa0f44c488..53f5f518041d 100644
--- a/docs/hooks.txt
+++ b/docs/hooks.txt
@@ -1,4 +1,4 @@
-HOOKS.DOC
+hooks.txt
This document describes how event hooks work in MediaWiki; how to add
hooks for an event; and how to run hooks for an event.
@@ -237,6 +237,9 @@ protocol came about after MediaWiki 1.4rc1.
This is a list of known events and parameters; please add to it if
you're going to add events to the MediaWiki code.
+'AddNewAccount': after a user account is created
+null: This hook passes null as an argument
+
'ArticleDelete': before an article is deleted
$article: the article (object) being deleted
$user: the user (object) deleting the article
@@ -279,6 +282,9 @@ $isminor: minor flag
$iswatch: watch flag
$section: section #
+'AutoAuthenticate': called to authenticate users on external/environmental means
+$user: writes user object to this parameter
+
'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)
@@ -348,5 +354,11 @@ $article: article object watched
'CategoryPageView': before viewing a categorypage in CategoryPage::view
$catpage: CategoryPage instance
+'SkinTemplateContentActions': after building the $content_action array right
+ before returning it, see content_action.php in
+ the extension module for a demonstration of how
+ to use this hook.
+$content_actions: The array of content actions
+
More hooks might not be available but undocumented.