function mvCustomEditor(&$article, &$user)
{
    global $wgTitle, $wgRequest;
    switch ($wgTitle->getNamespace()) {
        case MV_NS_SEQUENCE:
            $editor = new MV_EditSequencePage($article);
            $editor->edit();
            return false;
            break;
        case MV_NS_STREAM:
            $editor = new MV_EditStreamPage($article);
            $editor->edit();
            return false;
            break;
        case MV_NS_MVD:
            $editor = new MV_EditDataPage($article);
            $editor->edit();
            return false;
            break;
        default:
            // continue processing (use default editor)
            return true;
            break;
    }
    /*
    	//@@todo how will 'external' editors work?
    	if( !$wgRequest->getVal( 'UseExternalEditor' ) || $action=='submit' || $internal ||
    	   $section || $oldid || ( !$user->getOption( 'externaleditor' ) && !$external ) ) {
    		$editor = new MvEditSequence( $article );
    		$editor->edit();
    		return false;
    	} else {
    		return true;
    	}*/
}
function mvCustomEditor(&$article, &$user)
{
    global $wgTitle, $wgRequest;
    switch ($wgTitle->getNamespace()) {
        case MV_NS_SEQUENCE:
            $MvInterface = new MV_MetavidInterface('edit_sequence', $article);
            $MvInterface->render_full();
            return false;
            break;
        case MV_NS_STREAM:
            $editor = new MV_EditStreamPage($article);
            $editor->edit();
            return false;
            break;
        case MV_NS_MVD:
            $editor = new MV_EditDataPage($article);
            $editor->edit();
            return false;
            break;
        case MV_NS_SITTING:
            $editor = new MV_EditSittingPage($article);
            $editor->edit();
            return false;
            break;
            //case NS_USER:
            //	$editor = new MV_EditUser( $article );
            //	$editor->edit();
            //	return false;
            //break;
        //case NS_USER:
        //	$editor = new MV_EditUser( $article );
        //	$editor->edit();
        //	return false;
        //break;
        default:
            // continue proccessing (use default editor)
            return true;
            break;
    }
    /*
    		//@@todo how will 'external' editors work?
    		if( !$wgRequest->getVal( 'UseExternalEditor' ) || $action=='submit' || $internal ||
    		   $section || $oldid || ( !$user->getOption( 'externaleditor' ) && !$external ) ) {
    			$editor = new MvEditSequence( $article );
    			$editor->submit();
    		} elseif( $wgRequest->getVal( 'UseExternalEditor' ) && ( $external || $user->getOption( 'externaleditor' ) ) ) {
    			$mode = $wgRequest->getVal( 'mode' );
    			$extedit = new ExternalEdit( $article, $mode );
    			$extedit->edit();
    		}*/
}