Closed (fixed)
Project:
User Relationships
Version:
7.x-1.0-alpha4
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
21 Apr 2012 at 21:57 UTC
Updated:
10 May 2012 at 17:40 UTC
Hi, I would like to split node comments in two groups:
I have a view (views module) wich renders the comments for certain users indicated by an argument (wich is the users identification number). So, my final problem is how to get the users related to other. Something like:
$current_uid = $user->uid;
$rtype = 'friends'; // or its rtype code
$friends = get_related_users($current_uid, $rtype);
...
print get_view($view_name, $arg = $friends);
* Of course, that was just pseudocode.
I've search for a similar function in the code of the module but I haven't found anything. Any idea/suggestion/help about this issue?
Regards and thanks in advance.
Comments
Comment #1
mrf commentedI don't think there is anything like that in the main module but have a look at User Relationship Locator the queries you need, or at least good starting points should all be there.