You are here

function views_ui_convert1 in Views (for Drupal 7) 6.3

Same name and namespace in other branches
  1. 6.2 includes/convert.inc \views_ui_convert1()

Page callback for the tools - Views 1 convert page

1 string reference to 'views_ui_convert1'
views_ui_menu in ./views_ui.module

File

includes/convert.inc, line 125
convert.inc

Code

function views_ui_convert1($name) {
  $old = views1_load($name);
  if (!$old) {
    return t('Unable to find view.');
  }
  $view = views1_import($old);
  if ($view) {
    views_ui_cache_set($view);
    drupal_goto('admin/build/views/edit/' . $view->name);
  }
  else {
    return t('Unable to convert view.');
  }
}