83 $this->hidden = false; // A condition to hide module
84 $this->depends = array(); // List of modules id that must be enabled if this module is enabled
85 $this->requiredby = array('modZapier'); // List of modules id to disable if this one is disabled
86 $this->conflictwith = array(); // List of modules id this module is in conflict with
87 $this->phpmin = array(7, 0); // Minimum version of PHP required by module
88 $this->langfiles = array("other");
89
90// Constants
91// List of particular constants to add when module is enabled (key, 'chaine', value, desc, visible, 'current' or 'allentities', deleteonunactive)
92// Example: $this->const=array(0=>array('MYMODULE_MYNEWCONST1','chaine','myvalue','This is a constant to add',1),
93// 1=>array('MYMODULE_MYNEWCONST2','chaine','myvalue','This is another constant to add',0, 'current', 1)
94// );
95 $this->const = array();
96
97// Array to add new pages in new tabs
98// Example: $this->tabs = array('objecttype:+tabname1:Title1:mylangfile@api:$user->hasRight('api','read'):/api/mynewtab1.php?id=__ID__', // To add a new tab identified by code tabname1
99// 'objecttype:+tabname2:SUBSTITUTION_Title2:mylangfile@api:$user->hasRight('othermodule','read'):/api/mynewtab2.php?id=__ID__', // To add another new tab identified by code tabname2. Label will be result of calling all substitution functions on 'Title2' key.
100// 'objecttype:-tabname:NU:conditiontoremove'); // To remove an existing tab identified by code tabname
101// where objecttype can be
102// 'categories_x' to add a tab in category view (replace 'x' by type of category (0=product, 1=supplier, 2=customer, 3=member)
103// 'contact' to add a tab in contact view
104// 'contract' to add a tab in contract view
105// 'group' to add a tab in group view
106// 'intervention' to add a tab in intervention view
107// 'invoice' to add a tab in customer invoice view
108// 'invoice_supplier' to add a tab in supplier invoice view
109// 'member' to add a tab in foundation member view
110// 'opensurveypoll' to add a tab in opensurvey poll view
111// 'order' to add a tab in sales order view
112// 'order_supplier' to add a tab in supplier order view
113// 'payment' to add a tab in payment view
114// 'payment_supplier' to add a tab in supplier payment view
115// 'product' to add a tab in product view
116// 'propal' to add a tab in propal view
117// 'project' to add a tab in project view
118// 'stock' to add a tab in stock view
119// 'thirdparty' to add a tab in third party view
print $script_file $mode $langs defaultlang(is_numeric($duration_value) ? " delay=". $duration_value :"").(is_numeric($duration_value2) ? " after cd cd cd description as description
Only used if Module[ID]Desc translation string is not found.