You are here

function views_ui_analyze_view in Views (for Drupal 7) 6.3

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

Page callback to display analysis information on a view.

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

File

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

Code

function views_ui_analyze_view($js, $view) {
  views_include('ajax');
  $form_state = array(
    'view' => &$view,
    'ajax' => $js,
  );
  $output = views_ajax_form_wrapper('views_ui_analyze_view_form', $form_state);
  if ($js) {

    // If we don't have an output object, it was submitted. Set up the submission.
    if (empty($output)) {
      return views_ui_regenerate_tabs($view);
    }
    return views_ajax_render($output);
  }
  return $output;
}