2
0
forked from Wavyzz/dolibarr

Qual: Default usage to create dir when enabling module is the "simple" mode (we declare only the directory).

This commit is contained in:
Laurent Destailleur
2009-05-04 11:06:49 +00:00
parent 524f01348c
commit 7697a914d1
5 changed files with 53 additions and 49 deletions

View File

@@ -69,20 +69,9 @@ class modMyModule extends DolibarrModules
$this->picto='generic';
// Data directories to create when module is enabled.
// Example: this->dirs = array("/mymodule/temp");
$this->dirs = array();
$r=0;
//$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 = '';