Exemple #1
0
/**
 * Callback function for rendering edit fields
 * @return bool must return true or other hooks don't get called
 */
function renderSourceEditFields(&$editPage)
{
    $ns = $editPage->mTitle->getNamespace();
    if ($ns == NS_SOURCE) {
        $source = new Source($editPage->mTitle->getText());
        $source->renderEditFields($editPage);
    }
    return true;
}