From 466ef523faf25406848612b11b2a56199a86b8b6 Mon Sep 17 00:00:00 2001 From: jengo Date: Wed, 17 Oct 2001 02:33:05 +0000 Subject: [PATCH] - Added delete function - Added a way to have alternate functions handle the parsing of the status in return_html Its some what limited, the function can ONLY handle 1 parameter and it needs to be the first Plus, it needs to be defined globally --- phpgwapi/inc/class.historylog.inc.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/phpgwapi/inc/class.historylog.inc.php b/phpgwapi/inc/class.historylog.inc.php index c3da8e595a..02836d4707 100644 --- a/phpgwapi/inc/class.historylog.inc.php +++ b/phpgwapi/inc/class.historylog.inc.php @@ -46,6 +46,12 @@ $this->db = $GLOBALS['phpgw']->db; } + function delete($record_id) + { + $this->db->query("delete from phpgw_history_log where history_record_id='$record_id' and " + . "history_appname='" . $this->appname . "'",__LINE__,__FILE__); + } + function add($status,$record_id,$new_value) { $this->db->query("insert into phpgw_history_log (history_record_id,"