aboutsummaryrefslogtreecommitdiff
path: root/actions/edit.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/edit.php')
-rw-r--r--actions/edit.php9
1 files changed, 7 insertions, 2 deletions
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());
?>