You are here

function views_ui_add_form_to_stack in Views (for Drupal 7) 6.3

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

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

6 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.

... See full list

File

includes/admin.inc, line 1707
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;
  }
}