function views_ui_analyze_view_form

3.x admin.inc views_ui_analyze_view_form($form, &$form_state)
2.x admin.inc views_ui_analyze_view_form(&$form_state)

Form constructor callback to display analysis information on a view

1 string reference to 'views_ui_analyze_view_form'
views_ui_analyze_view in includes/admin.inc
Page callback to display analysis information on a view.

File

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

Code

function views_ui_analyze_view_form(&$form_state) {
  $view = &$form_state['view'];

  $form['#title'] = t('View analysis');
  $form['#section'] = 'analyze';

  views_include('analyze');
  $messages = views_analyze_view($view);

  $form['analysis'] = array(
    '#prefix' => '<div class="form-item">',
    '#suffix' => '</div>',
    '#value' => views_analyze_format_result($view, $messages),
  );

  // Inform the standard button function that we want an OK button.
  $form_state['ok_button'] = TRUE;
  views_ui_standard_form_buttons($form, $form_state, 'views_ui_analyze_view_form');
  return $form;
}