diff options
Diffstat (limited to 'lib/image.php')
-rw-r--r-- | lib/image.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/image.php b/lib/image.php index 4100f3f7b..c60eabfc0 100644 --- a/lib/image.php +++ b/lib/image.php @@ -18,6 +18,19 @@ class TidypicsImage extends ElggFile { } /** + * delete image + * + * @return bool + */ + public function delete() { + + $album = get_entity($this->container_guid); + $album->removeImage($this->guid); + + return parent::delete(); + } + + /** * Has the photo been tagged with "in this photo" tags * * @return true/false |