You are here

function views_ui_clone_page in Views (for Drupal 7) 6.3

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

Page callback to add a new view.

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

File

includes/admin.inc, line 574
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);
}