- "inventory/cost_update.php?", 'SA_STANDARDCOST');
- if (count($installed_extensions) > 0)
- {
- foreach ($installed_extensions as $mod)
- {
- if (@$mod['active'] && $mod['type'] == 'plugin' && $mod["tab"] == "stock")
- $this->add_rapp_function(2, $mod["title"],
- "modules/".$mod["path"]."/".$mod["filename"]."?",
- isset($mod["access"]) ? $mod["access"] : 'SA_OPEN' );
- }
- }
+ "inventory/cost_update.php?", 'SA_STANDARDCOST', MENU_MAINTENANCE);
+
+ $this->add_extensions();