2001-03-30 04:37:56 +02:00
|
|
|
<?php
|
2005-10-14 16:31:35 +02:00
|
|
|
/**************************************************************************\
|
|
|
|
* eGroupWare *
|
|
|
|
* http://www.egroupware.org *
|
|
|
|
* Written by Mark Peters <skeeter@phpgroupware.org> *
|
|
|
|
* -------------------------------------------- *
|
|
|
|
* 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. *
|
|
|
|
\**************************************************************************/
|
2001-03-30 04:37:56 +02:00
|
|
|
|
2005-10-14 16:31:35 +02:00
|
|
|
/* $Id$ */
|
2001-12-18 06:53:31 +01:00
|
|
|
|
|
|
|
// Delete all records for a user
|
2005-09-20 12:11:38 +02:00
|
|
|
if((int)$GLOBALS['hook_values']['account_id'] > 0)
|
|
|
|
{
|
|
|
|
$table_locks = Array('phpgw_preferences');
|
|
|
|
|
|
|
|
$GLOBALS['egw']->db->lock($table_locks);
|
|
|
|
$GLOBALS['egw']->db->query('DELETE FROM phpgw_preferences WHERE preference_owner='.(int)$GLOBALS['hook_values']['account_id'],__LINE__,__FILE__);
|
|
|
|
$GLOBALS['egw']->db->unlock();
|
|
|
|
}
|
2001-03-30 04:37:56 +02:00
|
|
|
?>
|