/** * Callback function to copy page links and propagate data * @return bool must return true or other hooks don't get called */ function propagateSourceMove(&$title, &$newTitle, &$user, $pageId, $redirPageId) { $ns = $title->getNamespace(); if ($ns == NS_SOURCE) { StructuredData::copyPageLinks($title, $newTitle); $source = new Source($title->getText()); $source->propagateMove($newTitle); } return true; }