Difference between revisions of "OnProfileCreate"

(Created page with "===Description=== This event trigger when new user created at Jomsocial. ===Params=== *'''User''' - array, consist of user object <syntaxhighlight lang="php"> CUser Object (...")
 
(Description)
 
Line 1: Line 1:
 
===Description===
 
===Description===
This event trigger when new user created at Jomsocial.
+
This event is triggered when a new user is created in JomSocial.
  
 
===Params===
 
===Params===

Latest revision as of 07:19, 9 March 2013

Description

This event is triggered when a new user is created in JomSocial.

Params

  • User - array, consist of user object
CUser Object
(
    [name] => John
    [username] => johnlee
    [_thumb] => images/photos/63/5/thumb_ff5e436b8148d10a7750abab.jpg
)


Example

function onprofilecreate($userObj) 
{
        $userObj     = $userObj[0];
        $userName  = $userObj->name;
        .
        .
        .
}