예제 #1
0
function mvSaveHook(&$article, &$user, &$text, &$summary, $minor, $watch, $sectionanchor, &$flags)
{
    global $mvgIP;
    // confirm we are in the metavid data Namespace (where data indexes are updated)
    if ($article->mTitle->getNamespace() == MV_NS_MVD) {
        MV_Index::update_index_page($article, $text);
    }
    return true;
    // always return true, in order not to stop MW's hook processing!
}