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! :-)

CommentFileSizeAuthor
#2 comment-body-raw-token.patch1.14 KBu.kurilla
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

u.kurilla created an issue. See original summary.

u.kurilla’s picture

u.kurilla’s picture

Assigned: Unassigned » u.kurilla
Status: Active » Patch (to be ported)

The patch is running in production (7.43, 7.56) for more than a year now. No issues.