fetchArray("SELECT * FROM zz_modules WHERE enabled='1' AND parent=".prepare($element['id']).' ORDER BY `order` ASC');
if ($submenus != null && count($submenus) != 0) {
$temp = '';
foreach ($submenus as $submenu) {
$temp .= menuSelection($submenu, $group_id, $depth, $perms_values, $perms_names);
}
}
$result .= '
'.str_repeat(' ', $depth).$name.' |
|
'.$temp;
return $result;
}