|
@@ -53,14 +53,16 @@ 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";
|
|
|
- // Gives the possibility to the module, to provide his own family info and position of this family. (canceled $this->family)
|
|
|
- $this->familyinfo = array('myownfamily' => array('position' => '001', 'label' => $langs->trans("MyOwnFamily")));
|
|
|
// Module position in the family
|
|
|
$this->module_position = 500;
|
|
|
+ // Gives the possibility to the module, to provide his own family info and position of this family (Overwrite $this->family and $this->module_position. Avoid this)
|
|
|
+ $this->familyinfo = array('myownfamily' => array('position' => '001', 'label' => $langs->trans("MyOwnFamily")));
|
|
|
+
|
|
|
// 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)
|
|
|
$this->description = "Description of module MyModule";
|
|
|
+
|
|
|
// 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)
|