I've been working on a project where I specifically need to send a notification email at the time of acceptance of the Terms and Conditions. To this end, I've started preparing a patch for Legal that includes some simple support for Rules events.

It looks like the support for the Conditions text and acceptance date doesn't quite work yet, but I've tested this with a rule to send an email out and it looks like it works! I'll update this as more changes come through.

CommentFileSizeAuthor
legal-rules.patch3.42 KBgeoffreyr

Comments

okday’s picture

thank you. I will try it and let you knwo if it works well on my website.

geek-merlin’s picture

Issue summary: View changes
geek-merlin’s picture

Title: Rules integration » Rules integration: Event "T&C accepted"
thomasmurphy’s picture

This patch works well, it, we've been using it in production for 6 months with no problems . Can it be committed to the module?

abarpetia’s picture

@thomasmurphy: If the attached patch is working for you then I'll suggest to change the ticket status to Reviewed & Tested by the Community. Then module maintainers will commit it to Dev branch.

I'll try to test this patch and provide feedback.

abarpetia’s picture

Status: Active » Needs review
thomasmurphy’s picture

Status: Needs review » Reviewed & tested by the community

We've gone through the process at https://www.drupal.org/patch/review so I'll change the ticket status.

  • Robert Castelo committed 12d6778 on 7.x-1.x
    Issue #1832904 by geoffreyr: Rules integration: Event "T&C accepted"
    
  • Robert Castelo committed 2b022e4 on 7.x-1.x
    Issue #1832904 by geoffreyr: Rules integration: Event "T&C accepted"
    
  • Robert Castelo committed 4627821 on 7.x-1.x
    Issue #1832904 by geoffreyr: Rules integration: Event "T&C accepted"
    
robert castelo’s picture

Status: Reviewed & tested by the community » Fixed

Commited with a few changes to the 7.x-1.x branch.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.