From dd0e69ba3aa9ab1521c104920d842a7226b67699 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Thu, 23 Apr 2009 01:32:35 +0000 Subject: Delete any comments associated with deleted items --- modules/comment/helpers/comment_event.php | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 modules/comment/helpers/comment_event.php (limited to 'modules/comment/helpers') diff --git a/modules/comment/helpers/comment_event.php b/modules/comment/helpers/comment_event.php new file mode 100644 index 00000000..606d8c95 --- /dev/null +++ b/modules/comment/helpers/comment_event.php @@ -0,0 +1,24 @@ +delete("comments", array("item_id" => $item->id)); + } +} -- cgit v1.2.3