Sinisakrisan (Talk | contribs) (Created page with "===Description=== This event trigger before the photo is deleted. @since 1.6 ===Params=== *'''Photo''' - array, consist of photo object <syntaxhighlight lang="php"> CTableP...") |
(→Description) |
||
Line 1: | Line 1: | ||
===Description=== | ===Description=== | ||
− | This event | + | This event is triggered before the photo is deleted. |
@since 1.6 | @since 1.6 |
Latest revision as of 07:16, 9 March 2013
Description
This event is triggered before the photo is deleted.
@since 1.6
Params
- Photo - array, consist of photo object
CTablePhoto Object ( [id] => 13 [albumid] => 5 [name] => [caption] => cwindow_type [permissions] => 0 [created] => 2009-10-20 04:52:14 [thumbnail] => images/photos/63/5/thumb_ff5e436b8148d10a7750abab.jpg [image] => images/photos/63/5/ff5e436b8148d10a7750abab.jpg [creator] => 63 [published] => 1 [original] => images/originalphotos/63/5/ff5e436b8148d10a7750abab.jpg )
Example
function onBeforePhotoDelete($photos) { $photoObj = $photos[0]; $photoCaption = $photoObj->caption; . . . }