mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-12 10:52:37 +01:00
Add: can defined submodule name (ex: $conf->module->submodule->dir_output)
Add: can change the module name if different (ex: $conf->newmodulename->dir_output)
This commit is contained in:
@@ -71,12 +71,18 @@ class modMyModule extends DolibarrModules
|
||||
// Data directories to create when module is enabled.
|
||||
$this->dirs = array();
|
||||
$r=0;
|
||||
|
||||
//$this->dirs[$r][0] = "mymodule";
|
||||
|
||||
//$this->dirs[$r][0] = "output";
|
||||
//$this->dirs[$r][1] = "/mymodule";
|
||||
//$this->dirs[$r][2] = 1; // Create constante in database if different of "output" and "temp" (ex: MAIN_MODULE_MYMODULE_DIR_OUTPUT)
|
||||
//$this->dirs[$r][3] = "submodule"; // Add submodule name (ex: $conf->mymodule->submodule->dir_output)
|
||||
//$this->dirs[$r][4] = "newmodulename"; // Change the module name if different (ex: $conf->newmodulename->dir_output)
|
||||
//$r++;
|
||||
//$this->dirs[$r][0] = "temp";
|
||||
//$this->dirs[$r][1] = "/mymodule/temp";
|
||||
//$this->dirs[$r][2] = 1; // Create constante in database if different of "output" and "temp" (ex: MAIN_MODULE_MYMODULE_DIR_TEMP)
|
||||
//$this->dirs[$r][3] = "submodule"; // Add submodule name (ex: $conf->mymodule->submodule->dir_temp)
|
||||
//$this->dirs[$r][4] = "newmodulename"; // Change the module name if different (ex: $conf->newmodulename->dir_temp)
|
||||
|
||||
// Relative path to module style sheet if exists. Example: '/mymodule/mycss.css'.
|
||||
$this->style_sheet = '';
|
||||
|
||||
Reference in New Issue
Block a user