function views_ui_default_button

3.x admin.inc views_ui_default_button($element, &$form_state, $form)

#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 5379
Provides the Views' administrative interface.

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;
}