A whole view disappears
Solution for the "to many lines" problem:

function YOURMODULE_views_default_views() {
    $files = file_scan_directory((drupal_get_path('module','YOURMODULE').'/views','.view'));
    foreach($files as $absolute =&gt; $file) {
        require $absolute;
        if(isset($view)) {
            $views[$view-&gt;name] = $view;
        }
    }
    return $views;
}


This way every view-code can be stored in it's own file inside a views subfolder inside YOURMODULE as some_name.view.