Add grouping options for contribution thank you letters
[civicrm-core.git] / CRM / Contribute / Form / Task / PDFLetterCommon.php
index 4dcba8ef7e1c8ecac33f86c2205a907cb5f07da5..5f2876bc93ed86e467bd598361f042453e7e2fc6 100644 (file)
@@ -40,7 +40,13 @@ class CRM_Contribute_Form_Task_PDFLetterCommon extends CRM_Contact_Form_Task_PDF
       if ($formValues['group_by_separator'] == 'td') {
         $realSeparator = "</td><td>";
       }
-    }
+               elseif ($formValues['group_by_separator'] == 'tr') {
+                 $realSeparator = "</td></tr><tr><td>";
+               }
+               elseif ($formValues['group_by_separator'] == 'br') {
+                 $realSeparator = "<br />";
+               }
+        }
     $separator = '****~~~~';// a placeholder in case the separator is common in the string - e.g ', '
     $validated = FALSE;