瀏覽代碼

Adding ahah_helper patch

stephen 13 年之前
父節點
當前提交
160a6c2792
共有 2 個文件被更改,包括 19 次插入0 次删除
  1. 18 0
      base/ahah_helper-submit-1231140-12.patch
  2. 1 0
      base/tripal_core/tripal_core.info

+ 18 - 0
base/ahah_helper-submit-1231140-12.patch

@@ -0,0 +1,18 @@
+diff --git a/ahah_helper.module b/ahah_helper.module
+index dfd222a..efe3f55 100644
+--- a/ahah_helper.module
++++ b/ahah_helper.module
+@@ -132,6 +132,13 @@ function ahah_helper_generic_submit($form, &$form_state) {
+  */
+ function ahah_helper_real_submit($form, &$form_state) {
+   unset($form_state['storage']);
++  
++  // Call FormAPI's standard submit handler for the form.
++  $form_id = $form['form_id']['#value'];
++  $function = $form_id . '_submit';
++  if (function_exists($function)) {
++    $function($form, $form_state);
++  } 
+ }
+ 
+ /**

+ 1 - 0
base/tripal_core/tripal_core.info

@@ -7,3 +7,4 @@ package = Tripal
 version = 6.x-0.3.1b
 
 dependencies = views
+dependencies = ahah_helper