Needs review
Project:
Buddylist
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
20 May 2008 at 15:52 UTC
Updated:
20 May 2008 at 15:52 UTC
Jump to comment: Most recent file
buddylist_add is currently written as
function buddylist($id) {
global $user
....
}
this patch changes it to
function buddylist($id, $uid = NULL) {
if (is_null($uid)) {
global $user;
}
...
}
in short it allows a buddy to be assigned between two arbitrary people instead of a new buddy with the currently logged in user. As a case example when saving buddy relationship with a newly signed up user via hook_user the $user object is set to anonymous because the newly signed up user isn't signed IN... but you know their ID ;)
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | buddylist_uid.patch | 1.04 KB | jredding |
Comments
Comment #1
jredding commentedforgot the patch.. sorry