I am trying to set up a notification email using rules that will email a forum topic with all the comments including the comment titles and body.

The Message text I have so far is:

A new forum comment has been posted by [comment:author:profile-main:field-name] with the following details





However, the final token, [comment:node:comments], only shows the comment titles and not the comment body.

Is there a way that I can show the full list of comments including the comment body?

1 Answer 1


To solve your issue you can create custom token which contain needed info. Basically you create a module that implements hook_tokens and hook_token_info. For more details see the documentation: http://api.drupal.org/api/drupal/includes--token.inc/7.

Additional, where you can find examples: https://www.drupal.org/node/1308488 and How to programmatically create a custom token in a module


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.