? submit_goto.patch
Index: workflow.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/workflow/workflow.module,v
retrieving revision 1.37
diff -u -p -r1.37 workflow.module
--- workflow.module	13 Mar 2006 22:36:36 -0000	1.37
+++ workflow.module	23 Mar 2006 19:55:12 -0000
@@ -594,7 +594,7 @@ function workflow_edit_submit($form_id, 
   workflow_update_name($form_values['wid'], $form_values['wf_name']);
   workflow_update_transitions($form_values['transitions']);
   drupal_set_message(t('Workflow updated.'));
-  drupal_goto('admin/workflow');
+  return('admin/workflow');
 }
 
 /**
@@ -629,7 +629,7 @@ function workflow_state_add_validate($fo
 function workflow_state_add_submit($form_id, $form_values) {
   workflow_state_create($form_values['wid'], $form_values['state_name']);
   drupal_set_message(t('The workflow state was created.'));
-  drupal_goto('admin/workflow');
+  return('admin/workflow');
 }
 
 /**
@@ -866,7 +866,7 @@ function workflow_state_delete_confirm_s
     workflow_state_delete($form_values['sid']);
     drupal_set_message(t('The workflow state %title was deleted.', array('%title' => theme('placeholder', $state))));
   }
-  drupal_goto('admin/workflow');
+  return('admin/workflow');
 }
 
 function workflow_types_form() {
@@ -923,7 +923,7 @@ function theme_workflow_types_form($form
 function workflow_type_form_submit($form_id, $form_values) {
   workflow_types_save($form_values);
   drupal_set_message(t('The workflow mapping was saved.'));
-  drupal_goto('admin/workflow');
+  return('admin/workflow');
 }
 
 function workflow_actions_remove_form($wid, $tid, $aid) {
@@ -943,7 +943,7 @@ function workflow_actions_remove_confirm
     workflow_actions_remove($form_values['tid'], $aid);
     watchdog('workflow', t('Action %action deleted',  array('%action' => check_plain($actions[$aid]))));
     drupal_set_message(t('Action %action deleted.', array('%action' => theme('placeholder', $actions[$aid]))));
-    drupal_goto('/admin/workflow/actions/'. $form_values['wid']);
+    return('/admin/workflow/actions/'. $form_values['wid']);
   }
 }
 
@@ -965,7 +965,7 @@ function workflow_actions_submit($form, 
 
   // the form does weird things if we don't do a drupal_goto()
   $wid = arg(3);
-  drupal_goto("admin/workflow/actions/$wid");
+  return("admin/workflow/actions/$wid");
 }
 
 function workflow_actions_form_build($wid, $form = NULL) {
