I'm building an activity stream module that relies entirely on Rules to set activity messages (long story). I'm trying to provide some default Rules, which means I can't rely on the assumption that any specific relationship types will exist; however, I want to display different messages depending on whether a relationship type is one-way or two-way. For example, I want to display a message on users' profiles when they make a new friend (two-way) but not when someone follows them (one-way).

The attached patch adds a condition to Rules that checks whether the relevant relationship is one-way.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Status: Needs review » Needs work

The last submitted patch, ur_rules_oneway_condition.patch, failed testing.

IceCreamYou’s picture

Bah, I was editing the file in a different directory.

mrf’s picture

Status: Needs work » Needs review

Sounds very useful, running the testbot on the updated patch.

Status: Needs review » Needs work

The last submitted patch, ur_rules_oneway_condition.patch, failed testing.

mrf’s picture

We have a large patch in the queue to help solve a major issue with one-way relationships. Please review if you have a chance so we can move forward with some of these related issues.
#651502: clarify reciprocal & one-way relationships