I'm trying to use user_relationships_ui_actions_between in a custom content panel, but all i get returned is an empty array:

//Current user
global $user;
//User being viewed
$account = user_load(arg(1));
$actions = user_relationships_ui_actions_between($user, $account, array('add' => 1, 'requested' => 1, 'received' => 1));
$out .= theme('item_list', $actions);

print_r just returnes an empty array.

Comments

Michsk’s picture

User relationships ui is installed.

Michsk’s picture

Status: Active » Fixed
//Current user
global $user;
//User being viewed
$account = user_load(arg(1));
$actions = user_relationships_ui_actions_between($user, $account, array('add' => 1, 'requested' => 1, 'received' => 1));
$out .= theme('item_list', array('items' =>$actions));

Status: Fixed » Closed (fixed)

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