//time being hack to strip ' '
//from particular letter line, CRM-6798
$this->formatMessage($html_message);
-
- $messageToken = CRM_Utils_Token::getTokens($html_message);
-
- $returnProperties = [];
- if (isset($messageToken['contact'])) {
- foreach ($messageToken['contact'] as $key => $value) {
- $returnProperties[$value] = 1;
- }
- }
-
- return [$formValues, $html_message, $messageToken, $returnProperties];
+ return [$formValues, $html_message];
}
/**
public function postProcessMembers($membershipIDs, $contactIDs) {
$form = $this;
$formValues = $form->controller->exportValues($form->getName());
- [$formValues, $html_message, $messageToken] = $this->processMessageTemplate($formValues);
-
+ [$formValues, $html_message] = $this->processMessageTemplate($formValues);
+ $messageToken = CRM_Utils_Token::getTokens($html_message);
$html
= $this->generateHTML(
$membershipIDs,
'radio_ts' => 'ts_sel',
'task' => CRM_Member_Task::PDF_LETTER,
]);
- list($formValues, $html_message, $messageToken, $returnProperties) = $form->processMessageTemplate($formValues);
+ list($formValues) = $form->processMessageTemplate($formValues);
list($html_message, $zip) = CRM_Utils_PDF_Document::unzipDoc($formValues['document_file_path'], $formValues['document_type']);
foreach ($this->_contactIds as $item => $contactId) {