コード例 #1
0
ファイル: Family.php プロジェクト: k-hasan-19/wiki
/**
 * Callback function to propagate data
 * @return bool must return true or other hooks don't get called
 */
function propagateFamilyUndelete(&$title, &$user)
{
    $ns = $title->getNamespace();
    if ($ns == NS_FAMILY) {
        $family = new Family($title->getText());
        $revision = StructuredData::getRevision($title, false, true);
        $family->propagateUndelete($revision);
    }
    return true;
}