follow up to r111017 - added docs
authorJeroen De Dauw <jeroendedauw@users.mediawiki.org>
Thu, 9 Feb 2012 14:10:59 +0000 (14:10 +0000)
committerJeroen De Dauw <jeroendedauw@users.mediawiki.org>
Thu, 9 Feb 2012 14:10:59 +0000 (14:10 +0000)
docs/hooks.txt

index 844e019..2bc0461 100644 (file)
@@ -1903,6 +1903,12 @@ $title: The title in question.
 $title: Title object that is being checked
 $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()
 
+'TitleIsKnown': Called when determining if a page exists.
+Allows overriding default behaviour for determining if a page exists.
+If $isKnown is kept as null, regular checks happen. If it's a boolean, this value is returned by the isKnown method.
+$title: Title object that is being checked
+$result: Boolean|null; whether MediaWiki currently thinks this page is known
+
 'TitleIsMovable': Called when determining if it is possible to move a page.
 Note that this hook is not called for interwiki pages or pages in immovable namespaces: for these, isMovable() always returns false.
 $title: Title object that is being checked