How to print add/remove link for user relationships module?
Install Devel module and add dpm statements in a progressive fashion. For instance: After you load the account, add : dmp (arg(1)) (and no other statements following). Inspect the dpm output for correctness and go onto the next statement, ie. dpm($account(arg(1)) and so forth.