User relationship buttons

Public

Basically it's a simple way to get the user relationship buttons.

Get raw version
php
  1. // Get the list of all the actions for each relationship type.
  2. $user_actions_list = user_relationships_ui_actions_between($user, $user_viewed);
  3.  
  4. // Theme the list of items as an item_list
  5. $output = theme('item_list', array('items' => $user_actions_list));

Comments

samozin's picture

ok how to put that in php block (i dont know about php sorry) ?