function views_ui_analyze_view_button

This form doesn't particularly do much; it's really just providing a link but a button seems like it would be nicer here.

It has no submit or anything, as we will never actually submit this form where the form is placed.

1 string reference to 'views_ui_analyze_view_button'
template_preprocess_views_ui_edit_view in includes/admin.inc
Preprocess the view edit page.

File

includes/admin.inc, line 2039

Code

function views_ui_analyze_view_button(&$form_state, $view) {
    $form['#action'] = url("admin/build/views/nojs/analyze/{$view->name}");
    $form['#attributes'] = array(
        'class' => 'views-ajax-form',
    );
    $form['submit'] = array(
        '#type' => 'submit',
        '#value' => t('Analyze'),
    );
    return $form;
}