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.
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.
Comment | File | Size | Author |
---|---|---|---|
#2 | ur_rules_oneway_condition.patch | 906 bytes | IceCreamYou |
ur_rules_oneway_condition.patch | 861 bytes | IceCreamYou |
Comments
Comment #2
IceCreamYou CreditAttribution: IceCreamYou commentedBah, I was editing the file in a different directory.
Comment #3
mrf CreditAttribution: mrf commentedSounds very useful, running the testbot on the updated patch.
Comment #5
mrf CreditAttribution: mrf commentedWe 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