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

Comments

sonictruth’s picture

I just realised that $actions is also not being supplied. can anyone help?

sprsquish’s picture

$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.

sonictruth’s picture

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

sonictruth’s picture

Status: Active » Closed (fixed)

closing