Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
How to add custom message type and use it for my custom node type?
I created:
New content type called
Ticket (Machine name: ticket)
and
New message type called
My custom message comment for ticket (Machine name: my_custom_message_comment_ticket)
How to use this message type for send email notifications when ticket commented by user?
Comment | File | Size | Author |
---|---|---|---|
#3 | screen.jpg | 99.08 KB | petr-oa |
Comments
Comment #1
petr-oa CreditAttribution: petr-oa commentedComment #2
petr-oa CreditAttribution: petr-oa commentedComment #3
petr-oa CreditAttribution: petr-oa commentedComment #4
ranroz CreditAttribution: ranroz commentedTo send notifications with message_notify you can either use the rules module and with rules_ui configure the scenario for sending a message.
The other option is to take a look at the code given in message_notify_example.module which details the creation on sending of notification messages when a user comments on a node on the site.
Comment #5
bluegeek9 CreditAttribution: bluegeek9 as a volunteer commented