Hey,

Love this lightweight module, switched to it after dealing with UR's massive system.

Question: Is there a function to spit out the friends's UID's of a UID in question?

Something like this:

flag_function_to_return_friends_uid('uid of user');
which would return all of the user id's the UID is friends with.

So if user 10 is friends with user 35, 64, and 72:
print flag_function_to_return_friends_uid('10');
would return: 35,64,72 in some format, either in an array or seperated by commas.

Main reason for this? There is no real way to show content listings of a user's friends in views, becuase of the way everything is set up. I'm aware this is somewhat possible w/ activity2, but there is no customization of the content. If I can get these UID's in format I can manage (comma separated) I can pass them as user:uid arguments in views, and create all sorts of awesome stuff.

Please let me know!

Thanks!

Comments

sirkitree’s picture

Status: Active » Fixed

flag_friend_get_friends() returns an array in the following format

array($uid => $user_object, $uid => $user_object, $uid => $user_object ...)

rc2020’s picture

ahhh!

LOVE IT!!

Thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

BenK’s picture

Keeping track of this thread....