I have recently switched from buddylist to user relationships.

viewname/UID/

If i pass in viewname where neither UID nor relationship code are specified, all the values show up, which is what is expected.

But I would like to enter viewname/UID and have the set to "1" for approved user relationship. But it is not working given the code below.

I have a view and a pass in arguments in this order
User Relationships: UID is related to Author
User Relationships: UID to Author is

argument code

if ($arg[1] || $arg[1] == 'me') {
if (!$arg[2]) {
return array(2 => 1);
}
}

I am sure it is a small mistake, but any help you can give me would be helpful

Thanks, Chris

Comments

berdir’s picture

Status: Active » Closed (won't fix)

Sorry for pinging the participants.

Now that Drupal 7 is out, there is no support for Drupal 5 and the corresponding modules anymore. Therefore, I'm closing all old issues which are still open.

I suggest you upgrade to Drupal 6 or 7 and figure out if you're feature is still needed or the bug still exists and open a new issue in that case.