// Use here a free id (See in Home -> System information -> Dolibarr for list of used modules id).
$this->numero=4100;
// Key text used to identify module (for permissions, menus, etc...)
$this->rights_class='datapolicy';
// Family can be 'base' (core modules),'crm','financial','hr','projects','products','ecm','technic' (transverse modules),'interface' (link with external tools),'other','...'
// It is used to group modules by family in module setup page
$this->family="technic";
// Module position in the family on 2 digits ('01', '10', '20', ...)
$this->module_position='78';
// 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)
// If file is in theme/yourtheme/img directory under name object_pictovalue.png, use this->picto='pictovalue'
// If file is in module/img directory under name object_pictovalue.png, use this->picto='pictovalue@module'
$this->picto='generic';
// Defined all module parts (triggers, login, substitutions, menus, css, etc...)
// for default path (eg: /datapolicy/core/xxxxx) (0=disable, 1=enable)
// for specific path of parts (eg: /datapolicy/core/modules/barcode)
// for specific css file (eg: /datapolicy/css/datapolicy.css.php)
$this->module_parts=array(
'triggers'=>0,// Set this to 1 if module has its own trigger directory (core/triggers)
'login'=>0,// Set this to 1 if module has its own login method file (core/login)
'substitutions'=>0,// Set this to 1 if module has its own substitution function file (core/substitutions)
'menus'=>0,// Set this to 1 if module has its own menus handler directory (core/menus)
'theme'=>0,// Set this to 1 if module has its own theme directory (theme)
'tpl'=>0,// Set this to 1 if module overwrite template dir (core/tpl)
'barcode'=>0,// Set this to 1 if module has its own barcode directory (core/modules/barcode)
'models'=>0,// Set this to 1 if module has its own models directory (core/modules/xxx)
'hooks'=>array('data'=>array('membercard','contactcard','thirdpartycard'),'entity'=>$conf->entity)// 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'
);
// Data directories to create when module is enabled.
$this->depends=array('always'=>'modCron');// List of module class names as string that must be enabled if this module is enabled
$this->requiredby=array();// List of module ids to disable if this one is disabled
$this->conflictwith=array();// List of module class names as string this module is in conflict with
$this->langfiles=array("datapolicy@datapolicy");
$this->phpmin=array(5,3);// Minimum version of PHP required by module
$this->need_dolibarr_version=array(4,0);// Minimum version of Dolibarr required by module
$this->warnings_activation=array();// Warning to show when we activate module. array('always'='text') or array('FR'='textfr','ES'='textes'...)
$this->warnings_activation_ext=array();// Warning to show when we activate an external module. array('always'='text') or array('FR'='textfr','ES'='textes'...)
// $this->tabs[] = array('data'=>'objecttype:+tabname1:Title1:mylangfile@datapolicy:$user->rights->datapolicy->read:/datapolicy/mynewtab1.php?id=__ID__'); // To add a new tab identified by code tabname1
// $this->tabs[] = array('data'=>'objecttype:+tabname2:SUBSTITUTION_Title2:mylangfile@datapolicy:$user->rights->othermodule->read:/datapolicy/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.
// $this->tabs[] = array('data'=>'objecttype:-tabname:NU:conditiontoremove'); // To remove an existing tab identified by code tabname
//
// Where objecttype can be
// 'categories_x' to add a tab in category view (replace 'x' by type of category (0=product, 1=supplier, 2=customer, 3=member)
// 'contact' to add a tab in contact view
// 'contract' to add a tab in contract view
// 'group' to add a tab in group view
// 'intervention' to add a tab in intervention view
// 'invoice' to add a tab in customer invoice view
// 'invoice_supplier' to add a tab in supplier invoice view
// 'member' to add a tab in fundation member view
// 'opensurveypoll' to add a tab in opensurvey poll view
// 'order' to add a tab in customer order view
// 'order_supplier' to add a tab in supplier order view
// 'payment' to add a tab in payment view
// 'payment_supplier' to add a tab in supplier payment view
// 'product' to add a tab in product view
// 'propal' to add a tab in propal view
// 'project' to add a tab in project view
// 'stock' to add a tab in stock view
// 'thirdparty' to add a tab in third party view
// 'user' to add a tab in user view
// Dictionaries
$this->dictionaries=array();
// Boxes/Widgets
// Add here list of php file(s) stored in datapolicy/core/boxes that contains class to show a widget.
$this->boxes=array();
// Cronjobs (List of cron jobs entries to add when module is enabled)
// unit_frequency must be 60 for minute, 3600 for hour, 86400 for day, 604800 for week