1 views_ui.admin.inc | views_ui_analyze_view_form($form, &$form_state) |
Form constructor callback to display analysis information on a view
File
- core/
modules/ views_ui/ views_ui.admin.inc, line 2997 - Admin page callbacks for the Views UI module.
Code
function views_ui_analyze_view_form($form, &$form_state) {
$view = &$form_state['view'];
$form['#title'] = t('View analysis');
$form['#section'] = 'analyze';
module_load_include('inc', 'views_ui', 'views_ui.analyze');
$messages = views_ui_analyze_view($view);
$form['analysis'] = array(
'#prefix' => '<div class="form-item">',
'#suffix' => '</div>',
'#markup' => views_ui_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;
}