Pass the user object in MakeGlobalVariablesScript in case some variables are user...
[lhc/web/wiklou.git] / docs / hooks.txt
index 6e92807..89d1cd2 100644 (file)
@@ -238,6 +238,9 @@ to add events to the MediaWiki code.
 $autoblockip: The IP going to be autoblocked.
 $block: The block from which the autoblock is coming.
 
+'AbortDiffCache': Can be used to cancel the caching of a diff
+&$diffEngine: DifferenceEngine object
+
 'AbortLogin': Return false to cancel account login.
 $user: the User object being authenticated against
 $password: the password being submitted, not yet checked for validity
@@ -886,6 +889,7 @@ $variableIDs: array of strings
 'MakeGlobalVariablesScript': called right before Skin::makeVariablesScript is executed   
 &$vars: variable (or multiple variables) to be added into the output   
                of Skin::makeVariablesScript
+&$wgUser: user (object) currently loading the skin
 
 'MarkPatrolled': before an edit is marked patrolled
 $rcid: ID of the revision to be marked patrolled
@@ -1175,7 +1179,7 @@ $out: Css to return
 'SkinTemplateTabAction': Override SkinTemplate::tabAction().
        You can either create your own array, or alter the parameters for the normal one.
 &$this:     The SkinTemplate instance.
-&$title:     Title instance for the page.
+$title:     Title instance for the page.
 $message:   Visible label of tab.
 $selected:  Whether this is a selected tab.
 $checkEdit: Whether or not the action=edit query should be added if appropriate.
@@ -1393,6 +1397,11 @@ $addergroups : Array of groups that the user is in
                                        'remove-self' => array( removable groups from self )
                                )
 
+'UserRights::showEditUserGroupsForm': called right before the form to edit group memberships at Special:UserRights is shown
+&$user: User or UserRightsProxy you're editing
+&$addable: Array of groups you can add the user into
+&$removable: Array of groups that you can remove the user from
+
 'UserRetrieveNewTalks': called when retrieving "You have new messages!" message(s)
 $user: user retrieving new talks messages
 $talks: array of new talks page(s)