NEW Introduce property module_position so a module can decide where it

appears into list of modules.
This commit is contained in:
Laurent Destailleur
2015-11-17 00:58:12 +01:00
parent dfc01e971f
commit f5631cac45
33 changed files with 59 additions and 10 deletions

View File

@@ -53,6 +53,7 @@ class modMyModule extends DolibarrModules
// Family can be 'crm','financial','hr','projects','products','ecm','technic','other'
// It is used to group modules in module setup page
$this->family = "other";
$this->module_position = 500;
// 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));
// Module description, used if translation string 'ModuleXXXDesc' not found (where XXX is value of numeric property 'numero' of module)