diff -up /home/rajesh/drupal_modules/mailing_label/mailing_label.module /home/rajesh/Desktop/mailing_label/mailing_label.module
--- /home/rajesh/drupal_modules/mailing_label/mailing_label.module	2009-10-24 22:05:08.000000000 -0400
+++ /home/rajesh/Desktop/mailing_label/mailing_label.module	2010-03-24 23:39:51.000000000 -0400
@@ -1,6 +1,6 @@
 <?php
 // $Id: mailing_label.module,v 1.4.2.5 2009/10/25 02:05:08 acouch Exp $
-
+$forms = array();
 
 /**
 * Implementation of hook_views_api().
@@ -12,7 +12,19 @@ function mailing_label_views_api(){
     'api' => 2,
   );
 }
-
+/**
+ * Implementation of hook_forms().
+ *
+ * This is necessary when multiple mailing_label forms appear on the same page, each
+ * requiring a separate form_id, but all using the same underlying callbacks.
+ */
+function mailing_label_forms($form_id, $args) {
+global $forms;
+  if (strpos($form_id, 'mailing_label_form_') !== FALSE) {
+      $forms[$form_id] = array('callback' => 'mailing_label_form', 'callback arguments' => $args);
+      return $forms;
+  }
+}
 
 /**
 * Implementation of hook_form().
@@ -41,11 +53,20 @@ function mailing_label_form($form_state,
     '#tree' => $results, 
   );
   $form['submit'] = array('#type' => 'submit', '#value' => t('Print PDF'));
-
+  $form['#submit'] = array('mailing_label_form_submit',);
+  $form['#validate'][] = 'mailing_label_form_validate';
   return $form;
 }
 
 /**
+* Implementation of hook_form_validate().
+*
+*/
+function mailing_label_form_validate($form, &$form_state){
+
+}
+
+/**
 * Implementation of hook_form_submit().
 *
 */
@@ -60,8 +81,9 @@ function mailing_label_form_submit($form
  * Call hook_form().
 *
 */
-function mailing_label_pdf_form($results) {
-  return drupal_get_form('mailing_label_form',$results);
+function mailing_label_pdf_form($result,$view) {
+
+  return drupal_get_form("mailing_label_form_$view",$result);
 }
 
 /**
Only in /home/rajesh/Desktop/mailing_label: mailing_label.module~
diff -up /home/rajesh/drupal_modules/mailing_label/mailing_label_plugin_display_attachment.inc /home/rajesh/Desktop/mailing_label/mailing_label_plugin_display_attachment.inc
--- /home/rajesh/drupal_modules/mailing_label/mailing_label_plugin_display_attachment.inc	2009-10-24 20:53:53.000000000 -0400
+++ /home/rajesh/Desktop/mailing_label/mailing_label_plugin_display_attachment.inc	2010-03-24 23:40:52.000000000 -0400
@@ -39,7 +39,7 @@ class mailing_label_plugin_display_attac
     $i++;
     }
    
-    return mailing_label_pdf_form($results);
+    return mailing_label_pdf_form($results,$current_display);
   }
 
 
Only in /home/rajesh/Desktop/mailing_label: mailing_label_plugin_display_attachment.inc~
Common subdirectories: /home/rajesh/drupal_modules/mailing_label/ufpdf and /home/rajesh/Desktop/mailing_label/ufpdf
