actions block
sonictruth - April 17, 2008 - 07:22
| Project: | User Relationships |
| Version: | 5.x-2.8 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
Ive been trying to get the actions block to show but i couldn't. So i looked in the code:
function theme_user_relationship_block_actions($account, $block_type, $rtype, $extra) {
if (!$account) { return; }
global $user;
$viewer =& $user;
$output = array();
if ($viewer != $account && $list = _user_relationships_between($viewer, $account)) {
$output[] = theme('item_list', $list, t('Your relationships to this user'), 'ul', array('class' => 'user_relationships'));
}
if ($actions = _user_relationships_actions_between($viewer, $account)) {
$output[] = theme('item_list', $actions, t('Relationship actions'), 'ul', array('class' => 'user_relationships_actions'));
}
return implode('', $output);
}I noticed that $list isn't being passed into this function and in fact isnt even in the calling function.
please help
thanks
Josh

#1
I just realised that $actions is also not being supplied. can anyone help?
#2
$list and $actions are being set within the 'if' statement.
The actions block should show up when one user views either another user's profile or another user's node.
#3
thanks for that. it took me a while to get my head around the module but i think ive got it all worked out now
#4
closing