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/edit.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'actions/edit.php') diff --git a/actions/edit.php b/actions/edit.php index 5eab8caff..359e83fb0 100644 --- a/actions/edit.php +++ b/actions/edit.php @@ -65,10 +65,15 @@ } // Success message - if ($subtype == 'album') + if ($subtype == 'album') { system_message(elgg_echo("album:edited")); - else + // plugins can register to be told when a Tidypics album has been updated + trigger_elgg_event('update', 'tp_album', $entity); + } else { system_message(elgg_echo('images:edited')); + // plugins can register to be told when a Tidypics image has been updated + trigger_elgg_event('update', 'tp_album', $entity); + } forward($entity->getURL()); ?> -- cgit v1.2.3