/** * Callback function to propagate data * @return bool must return true or other hooks don't get called */ function propagatePlaceEdit(&$article, &$user, &$text, &$summary, $minor, $dummy1, $dummy2, &$flags) { $ns = $article->getTitle()->getNamespace(); if ($ns == NS_PLACE) { $place = new Place($article->getTitle()->getText()); $place->propagateEdit($text, $article); } return true; }