Description

This event trigger after a the user has approved a friend request.

@since 1.2

Params

  • approve - object consisting of the profile owner id and the id of the user he/she accepted to be friend with.

{code}

approve Object
(
[profileOwnerId] => 64
[friendId] => 63
)

{/code}

Examples

{code}

function onFriendApprove( $approve ) 
{
echo $request->profileOwnerId;
echo '<br />';
echo $request->friendId;
 
return true;
}
 
result:
64
63

{/code}

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW