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,
Thanks for the excellent module.
Perhaps I am missing something but I can't achieve the following functionality.
I want to have the following configuration:
When a new comment is created, send an email notification to the node author.
If (and only if) the node author has checked the "Receive comment notifications" checkbox at his user profile.
It seems I can't associate conditions with profile fields (of the core profile module).
I have searched all the conditions but no success.
Is it possible to achieve this functionality?
Thanks in advance.
Comments
Comment #1
palazis CreditAttribution: palazis commentedAny news?
Comment #2
fagoyep, that would be nice to have.
>Is it possible to achieve this functionality?
yes.
However, I don't use the core profile module any more, so I won't work on that. Of course, contributions are welcome.
Comment #3
rokr CreditAttribution: rokr commentedHave you tried something like this?
Create a field 'profile_notification' with profile module (type: checkbox).
Create your Workflow-NG Rule with action.
Create a condition 'Execute custom PHP code".
Use this:
This works for me. Maybe you have to tweak it a little bit to match your needs.
cheers, Ronald