r22629 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r22628‎ | r22629 | r22630 >
Date:13:17, 1 June 2007
Author:aaron
Status:old
Tags:
Comment:
*Document some hooks
Modified paths:
  • /trunk/phase3/docs/hooks.txt (modified) (history)

Diff [purge]

Index: trunk/phase3/docs/hooks.txt
@@ -317,6 +317,27 @@
318318 Change $bad and return false to override. If an image is "bad", it is not
319319 rendered inline in wiki pages or galleries in category pages.
320320
 321+'BeforeGalleryFindFile': before an image is fetched for a gallery
 322+&$gallery,: the gallery object
 323+&$nt: the image title
 324+&$time: image timestamp
 325+
 326+'BeforeParserFetchTemplateAndtitle': before a template is fetched by Parser
 327+&$parser: Parser object
 328+&$title: title of the template
 329+&$skip: skip this template and link it?
 330+&$id: the id of the revision being parsed
 331+
 332+'BeforeParserMakeImageLinkObj': before an image is rendered by Parser
 333+&$parser: Parser object
 334+&$nt: the image title
 335+&$skip: skip this image and link it?
 336+&$time: the image timestamp
 337+
 338+'BeforeParserrenderImageGallery': before an image gallery is rendered by Parser
 339+&$parser: Parser object
 340+&$ig: ImageGallery object
 341+
321342 'BlockIp': before an IP address or user is blocked
322343 $block: the Block object about to be saved
323344 $user: the user _doing_ the block (not the one being blocked)
@@ -515,6 +536,9 @@
516537 &$sktemplate: SkinTemplate object
517538 &$tpl: Template engine object
518539
 540+'TitleLinkUpdatesAfterCompletion': after Linker->doUpdate() is called
 541+&$title: title of the updated page
 542+
519543 'TitleMoveComplete': after moving an article (title)
520544 $old: old title
521545 $nt: new title

Follow-up revisions

RevisionCommit summaryAuthorDate
r22652Merged revisions 22619-22651 via svnmerge from...david06:10, 2 June 2007