From e903a8d0f091911a57142327004ab50216453e18 Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Mon, 7 Dec 2009 13:12:23 +0000 Subject: [PATCH] call hooks with a proper hook array --- admin/inc/class.uimenuclass.inc.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/admin/inc/class.uimenuclass.inc.php b/admin/inc/class.uimenuclass.inc.php index c0aa19cdb4..6a6ce0573f 100644 --- a/admin/inc/class.uimenuclass.inc.php +++ b/admin/inc/class.uimenuclass.inc.php @@ -84,6 +84,7 @@ // create the html code for the menu function createHTMLCode($_hookname) { + $hook['location'] = $_hookname; switch ($_hookname) { case 'edit_user': @@ -92,6 +93,7 @@ 'url' => '/index.php', 'extradata' => 'menuaction=admin.uiaccounts.edit_user' ); + if (get_var('account_id',array('GET','POST'))) $hook['account_id'] = get_var('account_id',array('GET','POST')); break; case 'view_user': $GLOBALS['menuData'][] = array( @@ -99,6 +101,7 @@ 'url' => '/index.php', 'extradata' => 'menuaction=admin.uiaccounts.view_user' ); + //if (get_var('account_id',array('GET','POST'))) $hook['account_id'] = get_var('account_id',array('GET','POST')); break; case 'edit_group': $GLOBALS['menuData'][] = array( @@ -115,8 +118,8 @@ ); break; } - - $GLOBALS['egw']->hooks->process($_hookname); + //_debug_array($hook); + $GLOBALS['egw']->hooks->process($hook); if (count($GLOBALS['menuData']) >= 1) { $result = $this->display_section($GLOBALS['menuData']);