);
$this->addElement('select', 'group_by', ts('Group contributions by'), $options, array(), "<br/>", FALSE);
// this was going to be free-text but I opted for radio options in case there was a script injection risk
- $separatorOptions = array('comma' => 'Comma', 'td' => 'Horizontal Table Cell', 'tr' => 'Vertical Table Cell', 'br' => 'Line Break');
+ $separatorOptions = array('comma' => 'Comma', 'td' => 'Horizontal Table Cell', 'tr' => 'Vertical Table Cell', 'br' => 'Line Break');
$this->addElement('select', 'group_by_separator', ts('Separator (grouped contributions)'), $separatorOptions);
$emailOptions = array(
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 />";
- }
- }
+ 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;