Description

This event trigger after a friend request had been made.

@since 1.2

Params

  • request - object consisting of the profile owner id and the id of the user he/she requested to be friend with.
{code}request Object
(
[profileOwnerId] => 63
[friendId] => 64
){/code}

Examples

{code}
function onFriendRequest( $request ) 
{
echo $request->profileOwnerId;
echo '<br />';
echo $request->friendId;
 
return true;
}
 
result:
63
64
{/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