issue 2933 add isShow column and check isShow and unset menu item

git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12731 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ovclas 2013-02-12 05:37:45 +00:00
parent 1379f68c92
commit c657a0f2c1
2 changed files with 27 additions and 1 deletions

View file

@ -1448,6 +1448,29 @@ function checkCSRF()
return TRUE;
}
/**
* menu exposure check by isShow column
* @param array $menu
* @return void
*/
function recurciveExposureCheck(&$menu)
{
if(is_array($menu))
{
foreach($menu AS $key=>$value)
{
if(!$value['isShow'])
{
unset($menu[$key]);
}
if(is_array($value['list']) && count($value['list']) > 0)
{
recurciveExposureCheck($menu[$key]['list']);
}
}
}
}
/**
* Print raw html header
*