Add (currently unused) function to delete all contacts + update changelog

release-0.6
thomascube 17 years ago
parent ae8f192c90
commit 103d6b697c

@ -4,7 +4,9 @@ CHANGELOG RoundCube Webmail
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)
----------

@ -386,6 +386,19 @@ class rcube_contacts
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();
}
}

Loading…
Cancel
Save