function views_ui_clone_page

2.x admin.inc views_ui_clone_page($view)

Page callback to add a new view.

1 string reference to 'views_ui_clone_page'

File

includes/admin.inc, line 544
admin.inc Provides the Views' administrative interface.

Code

function views_ui_clone_page($view) {
  $form_state = array(
    'view' => $view->copy(),
  );

  drupal_set_title(t('Clone view %view', array('%view' => $view->name)));
  return drupal_build_form('views_ui_add_form', $form_state);
}