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.
It would be nice to integrate with rules so that some custom rules can be created for notification emails. For example I'm working on a site that would like to be able to notify the asker when the question is read by a moderator. I also imagine having to mark some questions as duplicates, which would not be published, but by adding a new field to mark it as a duplicate and linking to the duplicate issue, which should get emailed to the asker.
Comment | File | Size | Author |
---|---|---|---|
#1 | faq_ask-add-rules-integration-2237129-1.patch | 2.94 KB | jojonaloha |
Comments
Comment #1
jojonaloha CreditAttribution: jojonaloha commentedAttached in an initial patch. It adds a Rules condition to check that a valid notification email is provided for a question and a Rules action to load the notification email address for a question, which can be used in subsequent actions. You can use the "Send mail" action to actually send any notifications.
Comment #2
stenjo CreditAttribution: stenjo commentedThank you for the patch. I can see the test is green, but there is no test added for the feature. Would you be able to add some code to the faq_ask.test to verify the functionality you've just added?
I really appreciate your effort, and will be reviewing this patch as soon as possible.