OnFriendApprove

Revision as of 07:23, 9 March 2013 by Patricia Schmidt (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

This event is triggered after a 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.
approve Object
(
    [profileOwnerId] => 64
    [friendId] => 63
)


Example

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