From 82f57b2ccf8547dfad3c6e8d50970d92821e36bb Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 19 Feb 2016 20:05:25 +0100 Subject: [PATCH] Better position for modules --- htdocs/core/modules/modExport.class.php | 6 ++++-- htdocs/core/modules/modImport.class.php | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/htdocs/core/modules/modExport.class.php b/htdocs/core/modules/modExport.class.php index d57657c3204..cb3d104e096 100644 --- a/htdocs/core/modules/modExport.class.php +++ b/htdocs/core/modules/modExport.class.php @@ -44,13 +44,15 @@ class modExport extends DolibarrModules $this->numero = 240; $this->family = "technic"; - // Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module) + $this->module_position = 520; + // Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module) $this->name = preg_replace('/^mod/i','',get_class($this)); $this->description = "Outils d'exports de donnees Dolibarr (via un assistant)"; + // Possible values for version are: 'experimental' or 'dolibarr' or version $this->version = 'dolibarr'; // 'experimental' or 'dolibarr' or version $this->const_name = 'MAIN_MODULE_'.strtoupper($this->name); $this->special = 0; - $this->picto='technic'; + $this->picto = 'technic'; // Data directories to create when module is enabled $this->dirs = array("/export/temp"); diff --git a/htdocs/core/modules/modImport.class.php b/htdocs/core/modules/modImport.class.php index ebcd5363e21..63af9dc9064 100644 --- a/htdocs/core/modules/modImport.class.php +++ b/htdocs/core/modules/modImport.class.php @@ -44,7 +44,8 @@ class modImport extends DolibarrModules $this->numero = 250; $this->family = "technic"; - // Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module) + $this->module_position = 510; + // Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module) $this->name = preg_replace('/^mod/i','',get_class($this)); $this->description = "Outils d'imports de donnees Dolibarr (via un assistant)"; // Possible values for version are: 'experimental' or 'dolibarr' or version