Difference between revisions of "OnFriendApprove"

(Created page with "===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 t...")
(No difference)

Revision as of 18:36, 18 January 2013

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.
approve Object
(
    [profileOwnerId] => 64
    [friendId] => 63
)


Example

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