From a70f3bf38683af21f1e81ec1a5e74aa83ab46e38 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Mon, 2 Feb 2009 04:58:19 +0000 Subject: Have the quick delete file "item_before_delete" so that search and notification modules can do their thing. In addition, correct search so it works properly and doesn't try to create an Item_id_Model class. --- core/controllers/quick.php | 1 + 1 file changed, 1 insertion(+) (limited to 'core/controllers/quick.php') diff --git a/core/controllers/quick.php b/core/controllers/quick.php index 20072044..6fd0ae62 100644 --- a/core/controllers/quick.php +++ b/core/controllers/quick.php @@ -106,6 +106,7 @@ class Quick_Controller extends Controller { $msg = t("Deleted photo %title", array("title" => $item->title)); } + module::event("item_before_delete", $item); $item->delete(); message::success($msg); -- cgit v1.2.3