r36188 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r36187‎ | r36188 | r36189 >
Date:11:07, 11 June 2008
Author:ialex
Status:old
Tags:
Comment:
Document UserLoadDefaults and UserSetCookies hooks
Modified paths:
  • /trunk/phase3/docs/hooks.txt (modified) (history)

Diff [purge]

Index: trunk/phase3/docs/hooks.txt
@@ -1205,6 +1205,10 @@
12061206 $user: User to get rights for
12071207 &$rights: Current rights
12081208
 1209+'UserLoadDefaults': called when loading a default user
 1210+$user: user object
 1211+$name: user name
 1212+
12091213 'UserLoadFromSession': called to authenticate users on external/environmental means
12101214 $user: user object being loaded
12111215 &$result: set this to a boolean value to abort the normal authentification process
@@ -1236,6 +1240,11 @@
12371241 'UserSaveSettings': called when saving user settings
12381242 $user: User object
12391243
 1244+'UserSetCookies': called when setting user cookies
 1245+$user: User object
 1246+&$session: session array, will be added to $_SESSION
 1247+&$cookies: cookies array mapping cookie name to its value
 1248+
12401249 'UserSetEmail': called when changing user email address
12411250 $user: User object
12421251 &$email: new email, change this to override new email address

Status & tagging log