r94997 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r94996‎ | r94997 | r94998 >
Date:14:05, 19 August 2011
Author:catrope
Status:ok
Tags:
Comment:
Followup r94995: add hooks.txt entries for the new hooks
Modified paths:
  • /trunk/phase3/docs/hooks.txt (modified) (history)

Diff [purge]

Index: trunk/phase3/docs/hooks.txt
@@ -891,6 +891,11 @@
892892 &$cookies: array of cookies name, add a value to it if you want to add a cookie
893893 that have to vary cache options
894894
 895+'GetCanonicalURL': modify fully-qualified URLs used for IRC and e-mail notifications
 896+$title: Title object of page
 897+$url: string value as output (out parameter, can modify)
 898+$query: query options passed to Title::getCanonicalURL()
 899+
895900 'GetDefaultSortkey': Override the default sortkey for a page.
896901 $title: Title object that we need to get a sortkey for
897902 &$sortkey: Sortkey to use.
@@ -1059,6 +1064,11 @@
10601065 'InvalidateEmailComplete': Called after a user's email has been invalidated successfully
10611066 $user: user (object) whose email is being invalidated
10621067
 1068+'IRCLineURL': When constructing the URL to use in an IRC notification.
 1069+Callee may modify $url and $query, URL will be constructed as $url . $query
 1070+&$url: URL to index.php
 1071+&$query: Query string
 1072+
10631073 'IsFileCacheable': Override the result of Article::isFileCacheable() (if true)
10641074 $article: article (object) being checked
10651075

Sign-offs

UserFlagDate
Nikerabbitinspected15:35, 19 August 2011

Follow-up revisions

RevisionCommit summaryAuthorDate
r95607MFT to REL1_18...hashar19:28, 27 August 2011

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r94995Per CR on r44412 and my promise in the commit summary of r94990, stop abusing...catrope11:23, 19 August 2011

Status & tagging log