From 0319a6e05bf82b9f28659e879bf028ac622515d8 Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Wed, 28 Mar 2001 12:44:05 +0000 Subject: [PATCH] New hook for admin/deleteaccount.php --- addressbook/inc/hook_deleteaccount.inc.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 addressbook/inc/hook_deleteaccount.inc.php diff --git a/addressbook/inc/hook_deleteaccount.inc.php b/addressbook/inc/hook_deleteaccount.inc.php new file mode 100644 index 0000000000..c4e542aac3 --- /dev/null +++ b/addressbook/inc/hook_deleteaccount.inc.php @@ -0,0 +1,18 @@ + * + * -------------------------------------------- * + * This program is free software; you can redistribute it and/or modify it * + * under the terms of the GNU General Public License as published by the * + * Free Software Foundation; either version 2 of the License, or (at your * + * option) any later version. * + \**************************************************************************/ + /* $Id$ */ +{ + // Delete all records for a user + $contacts = CreateObject('phpgwapi.contacts'); + $contacts->delete_all($accountid); +} +?>