X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=applications%2Fapplication.php;h=430b20c80a531b741632b9daaf9f00e2168ba2f3;hb=5089910120614dfb8b76a0271b43739f90f38b01;hp=291a78a256ec9a418d252eb085f9e330df791c06;hpb=edbff365515fbb3a2899ff0b9717c1596496aff0;p=fa-stable.git diff --git a/applications/application.php b/applications/application.php index 291a78a2..430b20c8 100644 --- a/applications/application.php +++ b/applications/application.php @@ -125,19 +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) - $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' ); - } - } + hook_invoke_all('install_options', $this); } // // Helper returning link to report class added by extension module.