From 22e093dc078d243b4bb05a2f0c5b0820f511b4b6 Mon Sep 17 00:00:00 2001 From: skeeter Date: Fri, 30 Mar 2001 02:14:17 +0000 Subject: [PATCH] Rename of hook_deleteaccount.inc.php to hook_admin_deleteaccount.inc.php --- ...eaccount.inc.php => hook_admin_deleteaccount.inc.php} | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) rename addressbook/inc/{hook_deleteaccount.inc.php => hook_admin_deleteaccount.inc.php} (92%) mode change 100644 => 100755 diff --git a/addressbook/inc/hook_deleteaccount.inc.php b/addressbook/inc/hook_admin_deleteaccount.inc.php old mode 100644 new mode 100755 similarity index 92% rename from addressbook/inc/hook_deleteaccount.inc.php rename to addressbook/inc/hook_admin_deleteaccount.inc.php index c4e542aac3..b8f8080091 --- a/addressbook/inc/hook_deleteaccount.inc.php +++ b/addressbook/inc/hook_admin_deleteaccount.inc.php @@ -9,10 +9,13 @@ * Free Software Foundation; either version 2 of the License, or (at your * * option) any later version. * \**************************************************************************/ - /* $Id$ */ -{ + /* $Id$ */ // Delete all records for a user + if (floor($PHP_VERSION ) == 4) + { + global $accountid; + } + $contacts = CreateObject('phpgwapi.contacts'); $contacts->delete_all($accountid); -} ?>