New: Add property hidden into module descriptor to allow to hide a

module according to some dynamic conditions.
This commit is contained in:
Laurent Destailleur
2013-06-24 18:31:56 +02:00
parent 7778a17a89
commit a8547b5375
4 changed files with 13 additions and 4 deletions

View File

@@ -97,8 +97,10 @@ class modMyModule extends DolibarrModules
$this->config_page_url = array("mysetuppage.php@mymodule");
// Dependencies
$this->hidden = false; // A condition to hide module
$this->depends = array(); // List of modules id that must be enabled if this module is enabled
$this->requiredby = array(); // List of modules id to disable if this one is disabled
$this->conflictwith = array(); // List of modules id this module is in conflict with
$this->phpmin = array(5,0); // Minimum version of PHP required by module
$this->need_dolibarr_version = array(3,0); // Minimum version of Dolibarr required by module
$this->langfiles = array("mylangfile@mymodule");