r111033 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r111032‎ | r111033 | r111034 >
Date:14:10, 9 February 2012
Author:jeroendedauw
Status:ok
Tags:
Comment:
follow up to r111017 - added docs
Modified paths:
  • /trunk/phase3/docs/hooks.txt (modified) (history)

Diff [purge]

Index: trunk/phase3/docs/hooks.txt
@@ -1903,6 +1903,12 @@
19041904 $title: Title object that is being checked
19051905 $result: Boolean; whether MediaWiki currently thinks this is a CSS/JS page. Hooks may change this value to override the return value of Title::isCssOrJsPage()
19061906
 1907+'TitleIsKnown': Called when determining if a page exists.
 1908+Allows overriding default behaviour for determining if a page exists.
 1909+If $isKnown is kept as null, regular checks happen. If it's a boolean, this value is returned by the isKnown method.
 1910+$title: Title object that is being checked
 1911+$result: Boolean|null; whether MediaWiki currently thinks this page is known
 1912+
19071913 'TitleIsMovable': Called when determining if it is possible to move a page.
19081914 Note that this hook is not called for interwiki pages or pages in immovable namespaces: for these, isMovable() always returns false.
19091915 $title: Title object that is being checked

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r111017put in r110285 again now that 1.19 branchedjeroendedauw01:34, 9 February 2012

Status & tagging log