Exemplo n.º 1
0
/**
 * Callback function to propagate data
 * @return bool must return true or other hooks don't get called
 */
function propagateFamilyDelete(&$article, &$user, $reason)
{
    $ns = $article->getTitle()->getNamespace();
    if ($ns == NS_FAMILY) {
        $family = new Family($article->getTitle()->getText());
        $family->propagateDelete($article);
    }
    return true;
}