From 82ed7baf78c3005309487fc4e8b075cba9249e8b Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Sat, 3 Oct 2009 18:20:59 +0000 Subject: cleaned up events and plugin hooks --- actions/delete.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'actions/delete.php') diff --git a/actions/delete.php b/actions/delete.php index 498c991c7..1a518af9e 100644 --- a/actions/delete.php +++ b/actions/delete.php @@ -38,14 +38,14 @@ $forward_url = $container->getURL(); //forward back to album after deleting pictures $images = array($entity); // plugins can register to be told when a Tidypics image has been deleted - trigger_elgg_event('upload', 'tp_album', $entity); + trigger_elgg_event('delete', 'tp_image', $entity); } else { //deleting an album $owner_guid = $entity->container_guid; $forward_url = 'pg/photos/owned/' . $container->username; //get all the images from this album as long as less than 999 images $images = get_entities("object", "image", $guid, '', 999); // plugins can register to be told when a Tidypics album has been deleted - trigger_elgg_event('upload', 'tp_album', $entity); + trigger_elgg_event('delete', 'tp_album', $entity); } // make sure we decrease the repo size for the size quota -- cgit v1.2.3