[ Index ] |
|
Code source de eGroupWare 1.2.106-2 |
1 <?php 2 /**************************************************************************\ 3 * eGroupWare * 4 * http://www.egroupware.org * 5 * Written by Mark Peters <skeeter@phpgroupware.org> * 6 * -------------------------------------------- * 7 * This program is free software; you can redistribute it and/or modify it * 8 * under the terms of the GNU General Public License as published by the * 9 * Free Software Foundation; either version 2 of the License, or (at your * 10 * option) any later version. * 11 \**************************************************************************/ 12 /* $Id: hook_deleteaccount.inc.php 19044 2005-08-29 22:30:10Z regis_glc $ */ 13 14 // Delete all records for a user 15 if((int)$_POST['new_owner'] == 0) 16 { 17 //remove user from role mappings 18 ExecMethod('workflow.workflow_rolemanager.remove_user',(int)$_POST['account_id']); 19 //remove user from user/owner/next_user of instances 20 ExecMethod('workflow.workflow_instancemanager.remove_user',(int)$_POST['account_id']); 21 //remove user from default_next_user of activities 22 ExecMethod('workflow.workflow_activitymanager.remove_user',(int)$_POST['account_id']); 23 } 24 else 25 { 26 ExecMethod('workflow.workflow_rolemanager.transfer_user', 27 Array( 28 'old_user' => (int)$_POST['account_id'], 29 'new_user' => (int)$_POST['new_owner'] 30 ) 31 ); 32 ExecMethod('workflow.workflow_instancemanager.transfer_user', 33 Array( 34 'old_user' => (int)$_POST['account_id'], 35 'new_user' => (int)$_POST['new_owner'] 36 ) 37 ); 38 ExecMethod('workflow.workflow_activitymanager.transfer_user', 39 Array( 40 'old_user' => (int)$_POST['account_id'], 41 'new_user' => (int)$_POST['new_owner'] 42 ) 43 ); 44 } 45 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 17:20:01 2007 | par Balluche grâce à PHPXref 0.7 |