Merge "Add css $classes variable to the OldChangesListRecentChangesLine hook"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Thu, 10 Jan 2013 17:22:05 +0000 (17:22 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Thu, 10 Jan 2013 17:22:05 +0000 (17:22 +0000)
1  2 
docs/hooks.txt

diff --combined docs/hooks.txt
@@@ -869,18 -869,11 +869,18 @@@ $text: content of the edit bo
  &$error: error message to return
  $summary: Edit summary for page
  
 -'EditFilterMergedContent': Post-section-merge edit filter
 -$editor: EditPage instance (object)
 -$content: content of the edit box, as a Content object
 -&$error: error message to return
 +'EditFilterMergedContent': Post-section-merge edit filter.
 +This may be triggered by the EditPage or any other facility that modifies page content.
 +Use the $status object to indicate whether the edit should be allowed, and to provide
 +a reason for disallowing it. Return false to abort the edit, and true to continue.
 +Returning true if $status->isOK() returns false means "don't save but continue user
 +interaction", e.g. show the edit form.
 +$context: object implementing the IContextSource interface.
 +$content: content of the edit box, as a Content object.
 +$status: Status object to represent errors, etc.
  $summary: Edit summary for page
 +$user: the User object representing the user whois performing the edit.
 +$minoredit: whether the edit was marked as minor by the user.
  
  'EditFormPreloadText': Allows population of the edit form when creating
  new pages
@@@ -1456,6 -1449,17 +1456,6 @@@ $param: Associative Array with the foll
      "&lt;div ...>$1&lt;/div>").
    - flags Integer display flags (NO_ACTION_LINK,NO_EXTRA_USER_LINKS)
  
 -'LoggableUserIPData': Called when IP data for a user action can be logged by extensions like CheckUser.
 -This is intended for when users do things that do not already create edits or log entries.
 -$context: The context the of the action, which includes the user and request
 -$data: Associative array of data for handlers to record. It must include values for:
 - - 'namespace' Integer namespace for target title (NS_SPECIAL is allowed)
 - - 'title'     Database key string for target title (empty string if not applicable)
 - - 'pageid'    Integer page ID for target title (zero if not applicable)
 - - 'action'    Wikitext string in the same format as an edit summary
 - - 'comment'   Wikitext string in the same format as an edit summary
 - - 'timestamp' Timestamp when the action occured
 -
  'LoginAuthenticateAudit': A login attempt for a valid user account either
  succeeded or failed. No return data is accepted; this hook is for auditing only.
  $user: the User object being authenticated against
@@@ -1576,6 -1580,7 +1576,7 @@@ return false to omit the line from Rece
  &$changeslist: The OldChangesList instance.
  &$s: HTML of the form "<li>...</li>" containing one RC entry.
  &$rc: The RecentChange object.
+ &$classes: array of css classes for the <li> element
  
  'OpenSearchUrls': Called when constructing the OpenSearch description XML. Hooks
  can alter or append to the array of URLs for search & suggestion formats.
@@@ -2194,7 -2199,7 +2195,7 @@@ $term: String: search ter
  $opts: Array: key => value of hidden options for inclusion in custom forms
  
  'SpecialSearchSetupEngine': Allows passing custom data to search engine.
 -$search: special page object
 +$search: SpecialSearch special page object
  $profile: String: current search profile
  $engine: the search engine