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.
Hello!
I am in a situation where the mails to be sent need to be modified according to some custom node content (but it is still using the templates). To achieve that, I did like the flag_content module : the mail to be sent is retrived via a theming call. That way, others modules can override this call.
Please find attached a patch that implement this. There is no change of behavior for the commentmail module.
Cheers,
Nicolas
Comment | File | Size | Author |
---|---|---|---|
drupal5-commentmail-mailtheming.patch | 4.23 KB | ndeschildre |
Comments
Comment #1
maartenvg CreditAttribution: maartenvg commentedThat looks like a nice solution. I'll check it out and see if I can incorporate it into a release. For D6 you can change the mail I think with hook_mail_alter().