From 27781e0d8e226b89988e2cf7b8351d1d50cef4b7 Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Sun, 17 May 2009 21:46:22 +0000 Subject: added events to end of successful actions so plugins can do stuff --- actions/addalbum.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'actions/addalbum.php') diff --git a/actions/addalbum.php b/actions/addalbum.php index 3e7a12e87..329ebee48 100644 --- a/actions/addalbum.php +++ b/actions/addalbum.php @@ -64,6 +64,9 @@ unset($_SESSION['tidypicsbody']); unset($_SESSION['tidypicstags']); + // plugins can register to be told when a new Tidypics album has been created + trigger_elgg_event('add', 'tp_album', $album); + forward("pg/photos/upload/" . $album->guid); } -- cgit v1.2.3