r97348 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r97347‎ | r97348 | r97349 >
Date:23:14, 16 September 2011
Author:sean_colombo
Status:ok
Tags:
Comment:
Followup to r97342 to add docs for new hook.
Modified paths:
  • /trunk/phase3/docs/hooks.txt (modified) (history)

Diff [purge]

Index: trunk/phase3/docs/hooks.txt
@@ -1188,6 +1188,20 @@
11891189 $code: language code
11901190 &$alldata: The localisation data from core and extensions
11911191
 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+
11921206 'LoginAuthenticateAudit': a login attempt for a valid user account either
11931207 succeeded or failed. No return data is accepted; this hook is for auditing only.
11941208 $user: the User object being authenticated against

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r97342Merged in changes from LogEventsList which prevent missing usernames in log-l...sean_colombo22:30, 16 September 2011

Status & tagging log