X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=applications%2Fapplication.php;h=430b20c80a531b741632b9daaf9f00e2168ba2f3;hb=5089910120614dfb8b76a0271b43739f90f38b01;hp=052c6861d4b5fa052da5045ed8155d0adcbf6192;hpb=d33afc23816588fa75cfbbfee4d874799965bed4;p=fa-stable.git diff --git a/applications/application.php b/applications/application.php index 052c6861..430b20c8 100644 --- a/applications/application.php +++ b/applications/application.php @@ -125,26 +125,7 @@ function add_extensions() { - global $installed_extensions, $path_to_root; - - foreach ($installed_extensions as $mod) - { - if (@$mod['active'] && isset($mod['entries'])) - foreach($mod['entries'] as $entry) { - if ($entry['tab_id'] == $this->id) { - $_SESSION['get_text']->add_domain($_SESSION['language']->code, - $mod['path']."/lang"); - - $this->add_rapp_function( - isset($entry['section']) ? $entry['section'] : 2, - _($entry['title']), $path_to_root.'/'.$mod['path'].'/'.$entry['url'], - isset($entry["access"]) ? $entry["access"] : 'SA_OPEN' ); - - $_SESSION['get_text']->add_domain($_SESSION['language']->code, - $path_to_root."/lang", $_SESSION['language']->version); - } - } - } + hook_invoke_all('install_options', $this); } // // Helper returning link to report class added by extension module.