1 views_ui.admin.inc views_ui_regenerate_tab(&$view, &$output, $display_id)

Regenerate the current tab for AJAX updates.

File

core/modules/views_ui/views_ui.admin.inc, line 2358
Admin page callbacks for the Views UI module.

Code

function views_ui_regenerate_tab(&$view, &$output, $display_id) {
  if (!$view->set_display('default')) {
    return;
  }

  // Regenerate the main display area.
  $build = views_ui_get_display_tab($view, $display_id);
  views_ui_add_microweights($build);
  $output[] = ajax_command_html('#views-tab-' . $display_id, backdrop_render($build));

  // Regenerate the top area so changes to display names and order will appear.
  $build = views_ui_render_display_top($view, $display_id);
  views_ui_add_microweights($build);
  $output[] = ajax_command_replace('#views-display-top', backdrop_render($build));
}