Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #6 from oblaksoft/patch-1

Add action hooks for deleting pictures from album
  • Loading branch information...
commit 5b4396707260233557f1daa302b6b567ab7afa50 2 parents 22de7c7 + a667ed6
@fanquake fanquake authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 includes/bpa.core.php
View
6 includes/bpa.core.php
@@ -716,6 +716,8 @@ function bp_album_delete_picture($id=false){
@unlink($pic->pic_mid_path);
@unlink($pic->pic_thumb_path);
+ do_action('bp_album_delete_picture', $pic);
+
bp_album_delete_activity( $pic->id );
return $pic->delete();
@@ -749,6 +751,8 @@ function bp_album_delete_by_user_id($user_id, $remove_files = true){
@unlink($pic->pic_mid_path);
@unlink($pic->pic_thumb_path);
+ do_action('bp_album_delete_picture', $pic);
+
}
}
@@ -1109,4 +1113,4 @@ function bp_album_undo_rebuild_activity() {
}
-?>
+?>
Please sign in to comment.
Something went wrong with that request. Please try again.