You are here

function views_ui_ajax_update_form in Views (for Drupal 7) 8.3

Same name and namespace in other branches
  1. 7.3 includes/admin.inc \views_ui_ajax_update_form()

Updates a part of the add view form via AJAX.

Return value

The part of the form that has changed.

1 string reference to 'views_ui_ajax_update_form'
views_ui_add_ajax_trigger in views_ui/admin.inc
Converts a form element in the add view wizard to be AJAX-enabled.

File

views_ui/admin.inc, line 295
Provides the Views' administrative interface.

Code

function views_ui_ajax_update_form($form, $form_state) {

  // The region that needs to be updated was stored in a property of the
  // triggering element by views_ui_add_ajax_trigger(), so all we have to do is
  // retrieve that here.
  return drupal_array_get_nested_value($form, $form_state['triggering_element']['#views_ui_ajax_data']['refresh_parents']);
}