function views_ui_default_button

#process callback for a button.

Makes implicit form submissions trigger as this button.

See also

Drupal.behaviors.viewsImplicitFormSubmission

2 string references to 'views_ui_default_button'
views_ui_add_form in includes/admin.inc
Form builder for the "add new view" page.
views_ui_preview_form in includes/admin.inc
Provide the preview formulas and the preview output, too.

File

includes/admin.inc, line 5538

Code

function views_ui_default_button($element, &$form_state, $form) {
    $setting['viewsImplicitFormSubmission'][$form['#id']]['defaultButton'] = $element['#id'];
    $element['#attached']['js'][] = array(
        'type' => 'setting',
        'data' => $setting,
    );
    return $element;
}