Exemplo n.º 1
0
/**
 * Callback function for rendering edit fields
 * @return bool must return true or other hooks don't get called
 */
function renderPlaceEditFields(&$editPage)
{
    $ns = $editPage->mTitle->getNamespace();
    if ($ns == NS_PLACE) {
        $place = new Place($editPage->mTitle->getText());
        $place->renderEditFields($editPage, true);
    }
    return true;
}