Index: regcode_dynamic.module
===================================================================
RCS file: /cvs/drupal/contributions/modules/regcode/regcode_dynamic/Attic/regcode_dynamic.module,v
retrieving revision 1.1.2.8
diff -u -r1.1.2.8 regcode_dynamic.module
--- regcode_dynamic.module	30 Aug 2010 14:20:40 -0000	1.1.2.8
+++ regcode_dynamic.module	27 Jun 2011 10:32:20 -0000
@@ -158,7 +158,7 @@
     '#default_value' => (array) $data['terms'],
   );
 
-  $handler_form = 'regcode_dynamic_handler_' . $data['handler'];
+  $handler_form = $handler['configuration'];
   $form['regcode_dynamic_handler'] += $handler_form($data);
 
   $form['regcode_dynamic_save'] = array(
@@ -333,6 +333,9 @@
       'validator'     => 'regcode_dynamic_handler_luhn_validate',
     ),
   );
+  
+  // Collect handlers from other modules
+  $handlers = array_merge_recursive($handlers, module_invoke_all('regcode_dynamic_handler_collect'));
 
   // Check if we're loading a specific handler
   if ($handler !== NULL) {

