常用方法
常用方法
常用方法
常用方法
/** * 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; }