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
Comment #1
sirkitree commentedflag_friend_get_friends() returns an array in the following format
array($uid => $user_object, $uid => $user_object, $uid => $user_object ...)
Comment #2
rc2020 commentedahhh!
LOVE IT!!
Thanks!
Comment #4
BenK commentedKeeping track of this thread....