2
0
forked from Wavyzz/dolibarr

New: Introduce "_deprecated" keyword into module version when module has

been superseed by another one.
This commit is contained in:
Laurent Destailleur
2015-02-14 15:10:06 +01:00
parent 2a9ba93712
commit bd4b401281
2 changed files with 13 additions and 7 deletions

View File

@@ -57,7 +57,7 @@ class modMyModule extends DolibarrModules
$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)
$this->description = "Description of module MyModule";
// Possible values for version are: 'development', 'experimental', 'dolibarr' or version
// Possible values for version are: 'development', 'experimental', 'dolibarr' or 'dolibarr_deprecated' or version
$this->version = '1.0';
// Key used in llx_const table to save module status enabled/disabled (where MYMODULE is value of property name of module in uppercase)
$this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);