samtiria / nextgen-gallery

Automatically exported from code.google.com/p/nextgen-gallery
0 stars 0 forks source link

[Feature Request] Add hook action to detect when a image is deleted and when a gallery is deleted #436

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
In order to detect when a image or a gallery are deleted in order to use this 
event in a plugin.

I have already modifiy the file /admin/manage.php
line 84 after
    if($delete_pic)
            nggGallery::show_message( __('Picture','nggallery').' \''.$this->pid.'\' '.__('deleted successfully','nggallery') );
add 
    //Jeff Modif
    //hook for other plugin to update the fields
    do_action('ngg_delpicture', $this->pid);

To detect picture deletion but this modification will be destroy in  each 
upgrade

Original issue reported on code.google.com by jeff.del...@gmail.com on 17 Nov 2011 at 11:49

GoogleCodeExporter commented 8 years ago
Add new hook ngg_delete_picture, see r1028

Original comment by alex.cologne on 20 Nov 2011 at 12:14

GoogleCodeExporter commented 8 years ago
Great new !
Anyway to add such a feature in gallery delete function ?

Original comment by jeff.del...@gmail.com on 20 Nov 2011 at 1:43

GoogleCodeExporter commented 8 years ago
OK, see r1033

Original comment by alex.cologne on 27 Nov 2011 at 9:55