Postponed
Project:
User Relationships
Version:
6.x-1.x-dev
Component:
Elaborations
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
1 Apr 2011 at 16:52 UTC
Updated:
21 Jan 2012 at 01:05 UTC
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 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 commentedComment #3
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.