egroupware_official/infolog/inc/hook_deleteaccount.inc.php

23 lines
575 B
PHP
Raw Normal View History

2002-11-20 20:58:15 +01:00
<?php
2007-05-22 15:40:35 +02:00
/**
* InfoLog - delete account hook
*
* @link http://www.egroupware.org
* @author Ralf Becker <RalfBecker-AT-outdoor-training.de>
* @package infolog
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
* @version $Id$
*/
2002-11-20 20:58:15 +01:00
2007-05-22 15:40:35 +02:00
// Delete all records for a user
if((int)$GLOBALS['hook_values']['account_id'] > 0)
{
require_once(EGW_INCLUDE_ROOT.'/infolog/inc/class.soinfolog.inc.php');
2002-11-20 20:58:15 +01:00
2007-05-22 15:40:35 +02:00
$info =& new soinfolog;
2002-11-20 20:58:15 +01:00
2007-05-22 15:40:35 +02:00
$info->change_delete_owner((int)$GLOBALS['hook_values']['account_id'],(int)$_POST['new_owner']);
unset($info);
}