This patch adds yet another Rules integration. New Rules condition is added - "User has accepted T&C".

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

andypost’s picture

Status: Active » Needs work

+1 to this

+++ b/legal.info
@@ -1,6 +1,7 @@
+files[] = legal.rules.inc

No need, only files that contains classes should be listed here

+++ b/legal.rules.inc
@@ -0,0 +1,62 @@
+  if ($uid == 1) {
+    return TRUE;
+  }

Please add a comment that UID=1 skips the check, does the module works the same way?

maximpodorov’s picture

Status: Needs work » Needs review
FileSize
2.06 KB

The updated patch.

andypost’s picture

Status: Needs review » Reviewed & tested by the community

Great!

jherencia’s picture

Worked for me too, thank you :).

It would be perfect if the maintainer could commit the patch.

jherencia’s picture

Issue summary: View changes

Updated issue summary.

geek-merlin’s picture

Title: Rules integration (adding condition) » Rules integration: Condition "T&C accepted"
Issue summary: View changes
Related issues: +#1832904: Rules integration: Event "T&C accepted"

  • Robert Castelo committed 9792490 on 7.x-1.x
    Issue #1873354 by maximpodorov: Rules integration: Condition "T...
Robert Castelo’s picture

Status: Reviewed & tested by the community » Fixed

Thanks maximpodorov!

Added to dev, will be in the next release (soon).

Status: Fixed » Closed (fixed)

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