Minahito
minah****@users*****
2006年 8月 5日 (土) 15:23:04 JST
Index: xoops2jp/html/modules/user/admin/actions/UserDeleteAction.class.php diff -u xoops2jp/html/modules/user/admin/actions/UserDeleteAction.class.php:1.1.2.3 xoops2jp/html/modules/user/admin/actions/UserDeleteAction.class.php:1.1.2.4 --- xoops2jp/html/modules/user/admin/actions/UserDeleteAction.class.php:1.1.2.3 Thu Jul 13 19:46:13 2006 +++ xoops2jp/html/modules/user/admin/actions/UserDeleteAction.class.php Sat Aug 5 15:23:04 2006 @@ -1,7 +1,7 @@ <?php /** * @package user - * @version $Id: UserDeleteAction.class.php,v 1.1.2.3 2006/07/13 10:46:13 minahito Exp $ + * @version $Id: UserDeleteAction.class.php,v 1.1.2.4 2006/08/05 06:23:04 minahito Exp $ */ if (!defined('XOOPS_ROOT_PATH')) exit(); @@ -41,9 +41,16 @@ function _doExecute() { + XCube_DelegateUtils::call('Legacy.Admin.Event.UserDelete', new XCube_Ref($this->mObject)); $handler =& xoops_gethandler('member'); - return $handler->delete($this->mObject) ? USER_FRAME_VIEW_SUCCESS - : USER_FRAME_VIEW_ERROR; + if ($handler->delete($this->mObject)) { + XCube_DelegateUtils::call('Legacy.Admin.Event.UserDelete.Success', new XCube_Ref($this->mObject)); + return USER_FRAME_VIEW_SUCCESS; + } + else { + XCube_DelegateUtils::call('Legacy.Admin.Event.UserDelete.Fail', new XCube_Ref($this->mObject)); + return USER_FRAME_VIEW_ERROR; + } } function executeViewInput(&$controller, &$xoopsUser, &$render)