$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()
+'TitleIsMovable': Called when determining if it is possible to move a page
+$title: Title object that is being checked
+$result: Boolean; whether MediaWiki currently thinks this page is movable. Hooks may change this value to override the return value of Title::isMovable()
+
'TitleIsWikitextPage': Called when determining if a page is a wikitext or should
be handled by seperate handler (via ArticleViewCustom)
$title: Title object that is being checked
* @return Bool TRUE or FALSE
*/
public function isMovable() {
- return MWNamespace::isMovable( $this->getNamespace() ) && $this->getInterwiki() == '';
+ $result = MWNamespace::isMovable( $this->getNamespace() ) && $this->getInterwiki() == '';
+ wfRunHooks( 'TitleIsMovable', array( $this, &$result ) );
+ return $result;
}
/**