getSubjectEntity(); $object = $vars['item']->getObjectEntity(); $object_link = "getURL()}\">$object->name"; $subject_icon = elgg_view("profile/icon", array('entity' => $subject, 'size' => 'tiny')); $object_icon = elgg_view("profile/icon", array('entity' => $object, 'size' => 'tiny')); echo elgg_echo("friends:river:add", array($object_link)); echo '
'; echo $subject_icon; echo ''; echo $object_icon; echo '
';