mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 20:49:08 +01:00
call hooks with a proper hook array
This commit is contained in:
parent
7161fce93e
commit
e903a8d0f0
@ -84,6 +84,7 @@
|
|||||||
// create the html code for the menu
|
// create the html code for the menu
|
||||||
function createHTMLCode($_hookname)
|
function createHTMLCode($_hookname)
|
||||||
{
|
{
|
||||||
|
$hook['location'] = $_hookname;
|
||||||
switch ($_hookname)
|
switch ($_hookname)
|
||||||
{
|
{
|
||||||
case 'edit_user':
|
case 'edit_user':
|
||||||
@ -92,6 +93,7 @@
|
|||||||
'url' => '/index.php',
|
'url' => '/index.php',
|
||||||
'extradata' => 'menuaction=admin.uiaccounts.edit_user'
|
'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;
|
break;
|
||||||
case 'view_user':
|
case 'view_user':
|
||||||
$GLOBALS['menuData'][] = array(
|
$GLOBALS['menuData'][] = array(
|
||||||
@ -99,6 +101,7 @@
|
|||||||
'url' => '/index.php',
|
'url' => '/index.php',
|
||||||
'extradata' => 'menuaction=admin.uiaccounts.view_user'
|
'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;
|
break;
|
||||||
case 'edit_group':
|
case 'edit_group':
|
||||||
$GLOBALS['menuData'][] = array(
|
$GLOBALS['menuData'][] = array(
|
||||||
@ -115,8 +118,8 @@
|
|||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
//_debug_array($hook);
|
||||||
$GLOBALS['egw']->hooks->process($_hookname);
|
$GLOBALS['egw']->hooks->process($hook);
|
||||||
if (count($GLOBALS['menuData']) >= 1)
|
if (count($GLOBALS['menuData']) >= 1)
|
||||||
{
|
{
|
||||||
$result = $this->display_section($GLOBALS['menuData']);
|
$result = $this->display_section($GLOBALS['menuData']);
|
||||||
|
Loading…
Reference in New Issue
Block a user