}
}
- /**
- * 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.
*