Difference between revisions of "OnFriendRequest"

(Created page with "===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 t...")
 
(Description)
 
Line 1: Line 1:
 
===Description===
 
===Description===
This event trigger after a friend request had been made.
+
This event is triggered after a friend request has been made.
  
 
@since 1.2
 
@since 1.2

Latest revision as of 07:22, 9 March 2013

Description

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


Example

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