Skip to content

Commit

Permalink
Merge pull request #25887 from eileenmcnaughton/dep_dn
Browse files Browse the repository at this point in the history
Remove 2021 noisily deprecated pdfCommon function
  • Loading branch information
totten authored Mar 22, 2023
2 parents 7601c33 + 20edae1 commit 96d550c
Showing 1 changed file with 0 additions and 34 deletions.
34 changes: 0 additions & 34 deletions CRM/Contact/Form/Task/PDFLetterCommon.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,40 +75,6 @@ public static function preProcessSingle(&$form, $cid) {
}
}

/**
* Part of the post process which prepare and extract information from the template.
*
*
* @param array $formValues
*
* @return array
* [$categories, $html_message, $messageToken, $returnProperties]
*
* @deprecated
*/
public static function processMessageTemplate($formValues) {
CRM_Core_Error::deprecatedFunctionWarning('no alternative');

$html_message = self::processTemplate($formValues);

$categories = self::getTokenCategories();

//time being hack to strip ' '
//from particular letter line, CRM-6798
self::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, $categories, $html_message, $messageToken, $returnProperties];
}

/**
* Get the categories required for rendering tokens.
*
Expand Down

0 comments on commit 96d550c

Please sign in to comment.