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.
Hello,
I use Rules to send our notification messages when a relationship request is sent.
I noticed the Elaboration is not available as a token and would like to kindly request if it could be added?
Thank you!
Comments
Comment #1
Bilmar CreditAttribution: Bilmar commentedHi everyone,
Yea, this would be really cool!
I have only able to find the below tokens available in the relationship object in rules.
I don't know programming at all, but browsed all the files and found that the tokens were added in this file: user_relationships_api.module
I kinda just copied what I saw and added it as 'elaboration' =)
To my surprise, I tested it and it worked!
But I'm afraid I really don't know what I'm doing so it would be really nice if someone can check out the below and give me a thumbs up or down? If it looks good, I'll submit a proper patch so it is easy for the maintainer to commit.
So, in user_relationships_api.module I added
'elaboration' => t('The elaboration sent with the relationship request.'),
and'elaboration' => $r->elaboration,
I also noticed that
The user who approved the connnection request.
misspells 'connection'.Setting to 'needs review' just so people know there is something here.
But again, I will submit a proper patch if someone can please input words of wisdom =)
Comment #2
mrf CreditAttribution: mrf commentedComment #3
mrf CreditAttribution: mrf commentedI am postponing any 6.x feature requests that don't have a current applicable patch to help sort the large list of open features.
Please feel free to set to 'needs review' once a patch is included.