46// Use here a free id (See in Home -> System information -> Dolibarr for list of used modules id).
47 $this->numero = 50330;
48// Key text used to identify module (for permissions, menus, etc...)
49 $this->rights_class = 'zapier';
50// Family can be 'base' (core modules),'crm','financial','hr','projects','products','ecm','technic' (transverse modules),'interface' (link with external tools),'other','...'
51// It is used to group modules by family in module setup page
52 $this->family = "interface";
53// Module position in the family on 2 digits ('01', '10', '20', ...)
54 $this->module_position = '26';
55// 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)
70// If file is in theme/yourtheme/img directory under name object_pictovalue.png, use this->picto='pictovalue.png'
71// If file is in module/img directory under name object_pictovalue.png, use this->picto='pictovalue@module'
72 $this->picto = 'zapier.png';
73// Define some features supported by module (triggers, login, substitutions, menus, css, etc...)
74 $this->module_parts = array(
75// Set this to 1 if module has its own trigger directory (core/triggers)
76'triggers' => 1,
77// Set this to 1 if module has its own login method file (core/login)
78'login' => 0,
79// Set this to 1 if module has its own substitution function file (core/substitutions)
80'substitutions' => 0,
81// Set this to 1 if module has its own menus handler directory (core/menus)
82'menus' => 0,
83// Set this to 1 if module overwrite template dir (core/tpl)
84'tpl' => 0,
85// Set this to 1 if module has its own barcode directory (core/modules/barcode)
86'barcode' => 0,
87// Set this to 1 if module has its own models directory (core/modules/xxx)
88'models' => 0,
89// Set this to 1 if module has its own theme directory (theme)
90'theme' => 0,
91// Set this to relative path of css file if module has its own css file
92'css' => array(
93// '/zapier/css/zapier.css.php',
94 ),
95// Set this to relative path of js file if module must load a js on all pages
96'js' => array(
97// '/zapier/js/zapier.js.php',
98 ),
99// 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 'all'
100'hooks' => array(
101// 'data' => array(
102// 'hookcontext1',
103// 'hookcontext2',
104// ),
105// 'entity' => '0',
106 ),
107// Set this to 1 if feature of module are opened to external users
108'moduleforexternal' => 0,
109 );
110// Data directories to create when module is enabled.
113// Config pages. Put here list of php page, stored into zapier/admin directory, to use to setup module.
114 $this->config_page_url = array(
115"setup.php@zapier"
116 );
117// Dependencies
118// A condition to hide module
119 $this->hidden = false;
120// 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'...))
121 $this->depends = array('modApi');
122// List of module class names as string to disable if this one is disabled. Example: array('modModuleToDisable1', ...)
123 $this->requiredby = array();
124// List of module class names as string this module is in conflict with. Example: array('modModuleToDisable1', ...)
125 $this->conflictwith = array();
126 $this->langfiles = array("zapier");
127// Minimum version of PHP required by module
128//$this->phpmin = array(7, 0);
129// Minimum version of Dolibarr required by module
130 $this->need_dolibarr_version = array(10, 0);
131 $this->warnings_activation = array();
132 $this->warnings_activation_ext = array();
133// Constants
134// List of particular constants to add when module is enabled (key, 'chaine', value, desc, visible, 'current' or 'allentities', deleteonunactive)
135// Example: $this->const=array(
136// 1 => array('ZAPIERFORDOLIBARR_MYNEWCONST1', 'chaine', 'myvalue', 'This is a constant to add', 1),
137// 2 => array('ZAPIERFORDOLIBARR_MYNEWCONST2', 'chaine', 'myvalue', 'This is another constant to add', 0, 'current', 1)
138// );
139 $this->const = array(
140// 1 => array('ZAPIERFORDOLIBARR_MYCONSTANT', 'chaine', 'avalue', 'This is a constant to add', 1, 'allentities', 1)
141 );
142// Some keys to add into the overwriting translation tables
143/*$this->overwrite_translation = array(
144 'en_US:ParentCompany'=>'Parent company or reseller',
145 'fr_FR:ParentCompany'=>'Maison mère ou revendeur'
154// $this->tabs[] = array('data'=>'objecttype:+tabname1:Title1:mylangfile@zapier:$user->rights->zapier->read:/zapier/mynewtab1.php?id=__ID__'); // To add a new tab identified by code tabname1
155// $this->tabs[] = array('data'=>'objecttype:+tabname2:SUBSTITUTION_Title2:mylangfile@zapier:$user->rights->othermodule->read:/zapier/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.
156// $this->tabs[] = array('data'=>'objecttype:-tabname:NU:conditiontoremove'); // To remove an existing tab identified by code tabname
157//
158// Where objecttype can be
159// 'categories_x' to add a tab in category view (replace 'x' by type of category (0=product, 1=supplier, 2=customer, 3=member)
160// 'contact' to add a tab in contact view
161// 'contract' to add a tab in contract view
162// 'group' to add a tab in group view
163// 'intervention' to add a tab in intervention view
164// 'invoice' to add a tab in customer invoice view
165// 'invoice_supplier' to add a tab in supplier invoice view
166// 'member' to add a tab in foundation member view
167// 'opensurveypoll' to add a tab in opensurvey poll view
168// 'order' to add a tab in sales order view
169// 'order_supplier' to add a tab in supplier order view
170// 'payment' to add a tab in payment view
171// 'payment_supplier' to add a tab in supplier payment view
172// 'product' to add a tab in product view
173// 'propal' to add a tab in propal view
174// 'project' to add a tab in project view
175// 'stock' to add a tab in stock view
176// 'thirdparty' to add a tab in third party view
177// 'user' to add a tab in user view
178
179// Dictionaries
180 $this->dictionaries = array();
181
182// Boxes/Widgets
183// Add here list of php file(s) stored in zapier/core/boxes that contains class to show a widget.
184 $this->boxes = array(
185// 0 => array(
186// 'file' => 'zapierwidget1.php@zapier',
187// 'note' => 'Widget provided by Zapier',
188// 'enabledbydefaulton' => 'Home',
189// ),
190//1=>array('file'=>'zapierwidget2.php@zapier','note'=>'Widget provided by Zapier'),
191//2=>array('file'=>'zapierwidget3.php@zapier','note'=>'Widget provided by Zapier')
192 );
193// Cronjobs (List of cron jobs entries to add when module is enabled)
194// unit_frequency must be 60 for minute, 3600 for hour, 86400 for day, 604800 for week
260return -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.