After installing the latest CVS views module files, it's not possible to export views anymore. This is because in the export page function there is a require_once call to 'views_data.inc', which doesn't exist anymore:

/*
 * Export a view for cut & paste.
 */
function views_ui_admin_export_page($vid = '') {
  // FIXME: Change this to a textarea.
  $path = drupal_get_path('module', 'views');
  require_once("$path/views_data.inc"); <--- this file doesn't exist anymore
  $code = views_create_view_code($vid);
  $lines = substr_count($code, "\n");
  $form['code'] = array(
    '#type' => 'textarea',
    '#title' => $view->name,
    '#default_value' => $code,
    '#rows' => $lines);
  return drupal_get_form('views_export', $form);
}

Removing the offending line seems to make the export function work again.

CommentFileSizeAuthor
views_ui.module.patch416 bytesPermanently Undecided

Comments

merlinofchaos’s picture

Status: Needs review » Fixed

Whoops. I thought I'd gotten all these. :/

Anonymous’s picture

Status: Fixed » Closed (fixed)