1 views_ui.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
Backdrop.behaviors.viewsImplicitFormSubmission
File
- core/
modules/ views_ui/ views_ui.admin.inc, line 4925 - Admin page callbacks for the Views UI module.
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;
}