function views_ui_add_form_to_stack

3.x admin.inc views_ui_add_form_to_stack($key, &$view, $display_id, $args, $top = FALSE, $rebuild_keys = FALSE)
2.x admin.inc views_ui_add_form_to_stack($key, &$view, $display_id, $args, $top = FALSE)

Add another form to the stack; clicking 'update' will go to this form rather than closing the ajax pad.

5 calls to views_ui_add_form_to_stack()
views_plugin_display::options_submit in plugins/views_plugin_display.inc
Perform any necessary changes to the form values prior to storage. There is no need for this function to actually store the data.
views_plugin_display_page::options_submit in plugins/views_plugin_display_page.inc
Perform any necessary changes to the form values prior to storage. There is no need for this function to actually store the data.
views_ui_add_item_form_submit in includes/admin.inc
Submit handler for adding new item(s) to a view.
views_ui_change_style_form_submit in includes/admin.inc
Submit handler for configing new item(s) to a view.
views_ui_config_item_form_submit in includes/admin.inc
Submit handler for configing new item(s) to a view.

File

includes/admin.inc, line 1579
admin.inc Provides the Views' administrative interface.

Code

function views_ui_add_form_to_stack($key, &$view, $display_id, $args, $top = FALSE) {
  if (empty($view->stack)) {
    $view->stack = array();
  }

  $stack = array(views_ui_build_identifier($key, $view, $display_id, $args), $key, &$view, $display_id, $args);
  if ($top) {
    array_unshift($view->stack, $stack);
  }
  else {
    $view->stack[] = $stack;
  }
}