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.
Hi,
When I choose Status link in views I can un-friend somebody. But there is a way to add the button to add the friend? Flag friend module already has the option and it's really usefull.
Thanks
Comments
Comment #1
Markoz CreditAttribution: Markoz commentedsub
Comment #2
protoplasm CreditAttribution: protoplasm commentedLooking for this feature as well.
Just figured out a workaround for this.
Make sure you add all the proper relationships for rtid, requestee, and requester.
In fields add: UID and exclude from display
Then Add Global: Custom Text from fields
Edit the custom text display with something like Add a Friend
Check output this link as path and use this:
relationship/[uid]/request/2?destination=user
Since I have only two relationships and my friendship relationship is #2, that is why 2?destination. Adjust according to your own setup. Inspect the properties of your Add a Friend link to obtain the number you need to use.
Comment #3
mrf CreditAttribution: mrf commentedClosing this as a duplicate of #409432: Include an add to friends link in views.