Index: formsingle.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/formsingle/Attic/formsingle.module,v
retrieving revision 1.1.2.5
diff -u -r1.1.2.5 formsingle.module
--- formsingle.module	18 Sep 2006 18:04:37 -0000	1.1.2.5
+++ formsingle.module	29 Nov 2006 04:32:16 -0000
@@ -1,14 +1,6 @@
 <?php
 // $Id: formsingle.module,v 1.1.2.5 2006/09/18 18:04:37 robertDouglass Exp $
 
-function formsingle_help($section) {
-  switch ($section) {
-    case 'admin/modules#description':
-      return t('Protects forms from being submitted twice.');
-  }
-}
-
-
 /**
  * ATTENTION THEMERS: use this function if you are hard-coding forms into your theme!
  *
@@ -62,14 +54,14 @@
     );
   }
   // If the token is in the form values being posted...
-  elseif ($token = $_POST['edit']['formsingle_token']) {
+  elseif ($token = $_POST['formsingle_token']) {
     // ...add it to the form (it doesn't persist otherwise)
     $form['formsingle_token'] = array(
       '#type' => 'hidden',
       '#value' => $token,
     );
     // and add an extra submit function (with the token as the parameter).
-    $form['#submit'] = array('formsingle_submit' => array($_POST['edit']['formsingle_token'])) + (array)$form['#submit'];
+    $form['#submit'] = array('formsingle_submit' => array($_POST['formsingle_token'])) + (array)$form['#submit'];
   }
   // Otherwise, something is wrong so we boot them back to the page where they started.
   else {
Index: sites/all/modules/formsingle/formsingle.info
===================================================================
RCS file: sites/all/modules/formsingle/formsingle.info
diff -N sites/all/modules/formsingle/formsingle.info
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ sites/all/modules/formsingle/formsingle.info	1 Jan 1970 00:00:00 -0000
@@ -0,0 +1,3 @@
+; $Id$
+name = Formsingle
+description = Protects forms from being submitted twice.
