diff options
author | Cash Costello <cash.costello@gmail.com> | 2009-10-03 18:20:59 +0000 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2009-10-03 18:20:59 +0000 |
commit | 82ed7baf78c3005309487fc4e8b075cba9249e8b (patch) | |
tree | 79c939fb5fc23dbe5a732afd869b20386f16c374 /actions | |
parent | 6263b1d67488acd66f457aee0ec8a70e418ea5dc (diff) | |
download | elgg-82ed7baf78c3005309487fc4e8b075cba9249e8b.tar.gz elgg-82ed7baf78c3005309487fc4e8b075cba9249e8b.tar.bz2 |
cleaned up events and plugin hooks
Diffstat (limited to 'actions')
-rw-r--r-- | actions/delete.php | 4 | ||||
-rw-r--r-- | actions/edit.php | 2 |
2 files changed, 3 insertions, 3 deletions
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
diff --git a/actions/edit.php b/actions/edit.php index e8f2e3aca..91c465828 100644 --- a/actions/edit.php +++ b/actions/edit.php @@ -74,7 +74,7 @@ } 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);
+ trigger_elgg_event('update', 'tp_image', $entity);
}
forward($entity->getURL());
|