OnPhotoCreate

Description

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

Params

  • Photo - consist of photo object
CTablePhoto Object
(
 
    [id]         => 10
    [albumid] => 1
    [caption] => Photo Caption
    [created] => johnlee
    [published] => 1


Examples

function onPhotoCreate($photoObj) 
{
        $caption = $photoObj->caption;
        .
        .
        .
}