egroupware/infolog/inc/hook_deleteaccount.inc.php
Ralf Becker 7f9df0d051 - renamed class to new naming convention
- update version and dependencies for 1.6
- file_access method for attachments
2008-10-07 12:50:14 +00:00

22 lines
532 B
PHP

<?php
/**
* 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$
*/
// Delete all records for a user
if((int)$GLOBALS['hook_values']['account_id'] > 0)
{
$grants = array();
$info =& new infolog_so($grants);
$info->change_delete_owner((int)$GLOBALS['hook_values']['account_id'],(int)$_POST['new_owner']);
unset($info);
}