I have a use case for which email notifications of forum subscriptions are sent to subscribers. The emails contain the body field of comments via the "comment:body" token. Because the users are allowed to use ckeditor to edit their comments, the "comment:body" token contains html tags, which makes the (non-html) email hard to read sometimes.
I would like to have a token "comment:body-raw", which gives the unformatted raw body field to use it in email notifications. For that purpose I have adapted the file comment.tokens.inc and attached a patchfile. As soon as I get an issue number and have finished testing I will upload a patch with right naming. Hopefully, the token can find its way into the comment module! :-)
Comment | File | Size | Author |
---|---|---|---|
#2 | comment-body-raw-token.patch | 1.14 KB | u.kurilla |
Comments
Comment #2
u.kurilla CreditAttribution: u.kurilla as a volunteer commentedComment #3
u.kurilla CreditAttribution: u.kurilla as a volunteer commentedThe patch is running in production (7.43, 7.56) for more than a year now. No issues.