X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fui%2Fui_lists.inc;h=a68454cf8b267c7c1a0a430a0e9e81ae49da44dd;hb=ca45fa23d2d83705e11007acafd52528718ae5aa;hp=3a34efba66bcd3d8a98af592fb9253775691acd6;hpb=a73365128653d7c172874ec53a6da3b4fac69123;p=fa-stable.git diff --git a/includes/ui/ui_lists.inc b/includes/ui/ui_lists.inc index 3a34efba..a68454cf 100644 --- a/includes/ui/ui_lists.inc +++ b/includes/ui/ui_lists.inc @@ -2127,16 +2127,23 @@ function security_roles_list_row($label, $name, $selected_id=null, $new_item=fal return $str; } -function tab_list_row($label, $name, $selected_id=null) +function tab_list_row($label, $name, $selected_id=null, $all = false) { - global $tabs; + global $installed_extensions; + + $tabs = array(); + foreach ($_SESSION['App']->applications as $app) { + $tabs[$app->id] = access_string($app->name, true); + } + if ($all) { // add also not active ext. modules + foreach ($installed_extensions as $ext) { + if ($ext['type'] == 'module' && !$ext['active']) + $tabs[$ext['tab']] = access_string($ext['title'], true); + } + } echo "\n"; echo "$label\n"; - - $items = array(); - array_selector($name, $selected_id, $tabs); - echo "\n"; }