You are here

function views_ui_admin_add_page in Views (for Drupal 7) 5

1 call to views_ui_admin_add_page()
views_ui_admin_import_page in ./views_ui.module
2 string references to 'views_ui_admin_add_page'
views_ui_add_menu_items in ./views_ui.module
views_ui_menu in ./views_ui.module

File

./views_ui.module, line 468

Code

function views_ui_admin_add_page($template = NULL) {
  views_load_cache();
  $op = $_POST['op'];
  if ($op == t('Cancel')) {
    drupal_goto('admin/build/views');
  }
  $view = _views_get_default_view($template);
  drupal_set_title(t('Add a View'));
  return drupal_get_form('views_edit_view', $view, $op);
}