48// Use here a free id (See in Home -> System information -> Dolibarr for list of used modules id).
49 $this->numero = 68305; // TODO Go on page https://wiki.dolibarr.org/index.php/List_of_modules_id to reserve an id number for your module
50
51// Key text used to identify module (for permissions, menus, etc...)
52 $this->rights_class = 'webhook';
53
54// Family can be 'base' (core modules),'crm','financial','hr','projects','products','ecm','technic' (transverse modules),'interface' (link with external tools),'other','...'
55// It is used to group modules by family in module setup page
56 $this->family = "interface";
57
58// Module position in the family on 2 digits ('01', '10', '20', ...)
59 $this->module_position = '90';
60
61// Gives the possibility for the module, to provide his own family info and position of this family (Overwrite $this->family and $this->module_position. Avoid this)
80// If file is in theme/yourtheme/img directory under name object_pictovalue.png, use this->picto='pictovalue'
81// If file is in module/img directory under name object_pictovalue.png, use this->picto='pictovalue@module'
82// To use a supported fa-xxx css style of font awesome, use this->picto='xxx'
83 $this->picto = 'webhook';
84
85// Define some features supported by module (triggers, login, substitutions, menus, css, etc...)
86 $this->module_parts = array(
87// Set this to 1 if module has its own trigger directory (core/triggers)
88'triggers' => 1,
89// Set this to 1 if module has its own login method file (core/login)
90'login' => 0,
91// Set this to 1 if module has its own substitution function file (core/substitutions)
92'substitutions' => 0,
93// Set this to 1 if module has its own menus handler directory (core/menus)
94'menus' => 0,
95// Set this to 1 if module overwrite template dir (core/tpl)
96'tpl' => 0,
97// Set this to 1 if module has its own barcode directory (core/modules/barcode)
98'barcode' => 0,
99// Set this to 1 if module has its own models directory (core/modules/xxx)
100'models' => 1,
101// Set this to 1 if module has its own printing directory (core/modules/printing)
102'printing' => 0,
103// Set this to 1 if module has its own theme directory (theme)
104'theme' => 0,
105// Set this to relative path of css file if module has its own css file
106'css' => array(
107// '/webhook/css/webhook.css.php',
108 ),
109// Set this to relative path of js file if module must load a js on all pages
110'js' => array(
111// '/webhook/js/webhook.js.php',
112 ),
113// Set here all hooks context managed by module. To find available hook context, make a "grep -r '>initHooks(' *" on source code. You can also set hook context to 'all'
114'hooks' => array(
115// 'data' => array(
116// 'hookcontext1',
117// 'hookcontext2',
118// ),
119// 'entity' => '0',
120 ),
121// Set this to 1 if features of module are opened to external users
122'moduleforexternal' => 0,
123 );
124
125// Data directories to create when module is enabled.
135// List of module class names as string that must be enabled if this module is enabled. Example: array('always'=>array('modModuleToEnable1','modModuleToEnable2'), 'FR'=>array('modModuleToEnableFR'...))
136 $this->depends = array();
137 $this->requiredby = array(); // List of module class names as string to disable if this one is disabled. Example: array('modModuleToDisable1', ...)
138 $this->conflictwith = array(); // List of module class names as string this module is in conflict with. Example: array('modModuleToDisable1', ...)
139
140// The language file dedicated to your module
141 $this->langfiles = array();
142
143// Prerequisites
144 $this->phpmin = array(7, 0); // Minimum version of PHP required by module
145 $this->need_dolibarr_version = array(11, -3); // Minimum version of Dolibarr required by module
173// $this->tabs[] = array('data'=>'objecttype:+tabname1:Title1:mylangfile@webhook:$user->rights->webhook->read:/webhook/mynewtab1.php?id=__ID__'); // To add a new tab identified by code tabname1
174// $this->tabs[] = array('data'=>'objecttype:+tabname2:SUBSTITUTION_Title2:mylangfile@webhook:$user->rights->othermodule->read:/webhook/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.
175// $this->tabs[] = array('data'=>'objecttype:-tabname:NU:conditiontoremove'); // To remove an existing tab identified by code tabname
176//
177// Where objecttype can be
178// 'categories_x' to add a tab in category view (replace 'x' by type of category (0=product, 1=supplier, 2=customer, 3=member)
179// 'contact' to add a tab in contact view
180// 'contract' to add a tab in contract view
181// 'group' to add a tab in group view
182// 'intervention' to add a tab in intervention view
183// 'invoice' to add a tab in customer invoice view
184// 'invoice_supplier' to add a tab in supplier invoice view
185// 'member' to add a tab in foundation member view
186// 'opensurveypoll' to add a tab in opensurvey poll view
187// 'order' to add a tab in sales order view
188// 'order_supplier' to add a tab in supplier order view
189// 'payment' to add a tab in payment view
190// 'payment_supplier' to add a tab in supplier payment view
191// 'product' to add a tab in product view
192// 'propal' to add a tab in propal view
193// 'project' to add a tab in project view
194// 'stock' to add a tab in stock view
195// 'thirdparty' to add a tab in third party view
196// 'user' to add a tab in user view
197
198// Dictionaries
199 $this->dictionaries = array();
200/* Example:
201 $this->dictionaries=array(
202 'langs'=>'',
203 // List of tables we want to see into dictionary editor
208 'tabsql'=>array('SELECT f.rowid as rowid, f.code, f.label, f.active FROM '.MAIN_DB_PREFIX.'table1 as f', 'SELECT f.rowid as rowid, f.code, f.label, f.active FROM '.MAIN_DB_PREFIX.'table2 as f', 'SELECT f.rowid as rowid, f.code, f.label, f.active FROM '.MAIN_DB_PREFIX.'table3 as f'),
282return -1; // Do not activate module if error 'not allowed' returned when loading module SQL queries (the _load_table run sql with run_sql with the error allowed parameter set to 'default')
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.