Index: trunk/phase3/docs/hooks.txt |
— | — | @@ -1188,6 +1188,20 @@ |
1189 | 1189 | $code: language code |
1190 | 1190 | &$alldata: The localisation data from core and extensions |
1191 | 1191 | |
| 1192 | +'LogEventsListShowLogExtract': called before the string is added to OutputPage. Returning false will prevent the string from being added to the OutputPage |
| 1193 | +&$s: html string to show for the log extract |
| 1194 | +$types: String or Array (''isn't documented on showLogExtract() yet, not sure what it is'') |
| 1195 | +$page: String The page title to show log entries for |
| 1196 | +$user: String The user who made the log entries |
| 1197 | +$param: Associative Array with the following additional options: |
| 1198 | + - lim Integer Limit of items to show, default is 50 |
| 1199 | + - conds Array Extra conditions for the query (e.g. "log_action != 'revision'") |
| 1200 | + - showIfEmpty boolean Set to false if you don't want any output in case the loglist is empty if set to true (default), "No matching items in log" is displayed if loglist is empty |
| 1201 | + - msgKey Array If you want a nice box with a message, set this to the key of the message. First element is the message key, additional optional elements are parameters for the key that are processed with wgMsgExt and option 'parse' |
| 1202 | + - offset Set to overwrite offset parameter in $wgRequest set to '' to unset offset |
| 1203 | + - wrap String Wrap the message in html (usually something like "<div ...>$1</div>"). |
| 1204 | + - flags Integer display flags (NO_ACTION_LINK,NO_EXTRA_USER_LINKS) |
| 1205 | + |
1192 | 1206 | 'LoginAuthenticateAudit': a login attempt for a valid user account either |
1193 | 1207 | succeeded or failed. No return data is accepted; this hook is for auditing only. |
1194 | 1208 | $user: the User object being authenticated against |