Index: trunk/phase3/docs/hooks.txt |
— | — | @@ -1903,6 +1903,12 @@ |
1904 | 1904 | $title: Title object that is being checked |
1905 | 1905 | $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() |
1906 | 1906 | |
| 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 | + |
1907 | 1913 | 'TitleIsMovable': Called when determining if it is possible to move a page. |
1908 | 1914 | Note that this hook is not called for interwiki pages or pages in immovable namespaces: for these, isMovable() always returns false. |
1909 | 1915 | $title: Title object that is being checked |