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/upload.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'actions/upload.php') diff --git a/actions/upload.php b/actions/upload.php index 7c50b95d4..90711704a 100644 --- a/actions/upload.php +++ b/actions/upload.php @@ -216,7 +216,9 @@ add_to_river('river/object/album/create', 'create', $album->owner_guid, $album->guid); $album->new_album = 0; } - + // plugins can register to be told when a Tidypics album has had images added + trigger_elgg_event('upload', 'tp_album', $album); + forward($CONFIG->wwwroot . 'mod/tidypics/edit_multi.php?files=' . implode('-', $uploaded_images)); //forward to multi-image edit page } else { forward(get_input('forward_url', $_SERVER['HTTP_REFERER'])); //upload failed, so forward to previous page -- cgit v1.2.3