| Index: trunk/phase3/docs/hooks.txt |
| — | — | @@ -1800,6 +1800,10 @@ |
| 1801 | 1801 | $title: Title object that is being checked |
| 1802 | 1802 | $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() |
| 1803 | 1803 | |
| | 1804 | +'TitleIsMovable': Called when determining if it is possible to move a page |
| | 1805 | +$title: Title object that is being checked |
| | 1806 | +$result: Boolean; whether MediaWiki currently thinks this page is movable. Hooks may change this value to override the return value of Title::isMovable() |
| | 1807 | + |
| 1804 | 1808 | 'TitleIsWikitextPage': Called when determining if a page is a wikitext or should |
| 1805 | 1809 | be handled by seperate handler (via ArticleViewCustom) |
| 1806 | 1810 | $title: Title object that is being checked |
| Index: trunk/phase3/includes/Title.php |
| — | — | @@ -1786,7 +1786,9 @@ |
| 1787 | 1787 | * @return Bool TRUE or FALSE |
| 1788 | 1788 | */ |
| 1789 | 1789 | public function isMovable() { |
| 1790 | | - return MWNamespace::isMovable( $this->getNamespace() ) && $this->getInterwiki() == ''; |
| | 1790 | + $result = MWNamespace::isMovable( $this->getNamespace() ) && $this->getInterwiki() == ''; |
| | 1791 | + wfRunHooks( 'TitleIsMovable', array( $this, &$result ) ); |
| | 1792 | + return $result; |
| 1791 | 1793 | } |
| 1792 | 1794 | |
| 1793 | 1795 | /** |