Index: webform_report.inc
===================================================================
RCS file: /cvs/drupal/contributions/modules/webform/Attic/webform_report.inc,v
retrieving revision 1.17.2.15
diff -u -r1.17.2.15 webform_report.inc
--- webform_report.inc	4 Mar 2009 05:05:12 -0000	1.17.2.15
+++ webform_report.inc	16 Jul 2009 00:29:11 -0000
@@ -96,7 +96,12 @@
     $columns[] = array('data' => t('User'), 'field' => 'name');
     $columns[] = array('data' => t('IP Address'), 'field' => 'remote_addr');
   }
-  $columns[] = array('data' => t('Operations'), 'colspan' => 3);
+  if (module_exists('print')) {
+    $colspan = 4;
+  } else {
+    $colspan = 3;
+  }
+  $columns[] = array('data' => t('Operations'), 'colspan' => $colspan);
 
   return $columns;
 }
@@ -133,6 +138,9 @@
       $row[] = $submission->remote_addr;
     }
     $row[] = l(t('View'), "node/$node->nid/submission/$sid");
+    if (module_exists('print')) {
+      $row[] = l(t('Print'), "print/$node->nid/submission/$sid");
+    }
     if ((user_access('edit own webform submissions') && ($user->uid == $submission->uid)) || user_access('edit webform submissions')) {
       $row[] = l(t('Edit'), "node/$node->nid/submission/$sid/edit");
       $row[] = l(t('Delete'), "node/$node->nid/submission/$sid/delete", array('query' => drupal_get_destination()));

