From 103d6b697ce53eb8e954b4a4c9eac659ef942b24 Mon Sep 17 00:00:00 2001
From: thomascube <thomas@roundcube.net>
Date: Wed, 20 Feb 2008 17:57:32 -0500
Subject: [PATCH] Add (currently unused) function to delete all contacts + update changelog
---
CHANGELOG | 2 ++
program/include/rcube_contacts.inc | 13 +++++++++++++
2 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/CHANGELOG b/CHANGELOG
index c95d306..0114bd0 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -4,7 +4,9 @@
2008/02/20 (thomasb)
----------
- Localize folder name in page title (#1484785)
+- Fix code using wrong variable name (#1484018)
- Allow to send mail with BCC recipients only
+- Remove MDN headers before saving in sent folder
2008/02/12 (estadtherr)
----------
diff --git a/program/include/rcube_contacts.inc b/program/include/rcube_contacts.inc
index f01d222..6a48656 100644
--- a/program/include/rcube_contacts.inc
+++ b/program/include/rcube_contacts.inc
@@ -386,6 +386,19 @@
return $this->db->affected_rows();
}
+
+
+ /**
+ * Remove all records from the database
+ */
+ function delete_all()
+ {
+ if (is_array($ids))
+ $ids = join(',', $ids);
+
+ $this->db->query("DELETE FROM {$this->db_name} WHERE user_id=?", $this->user_id);
+ return $this->db->affected_rows();
+ }
}
--
Gitblit v1.9.1