New: Modif pour gerer insertion entree menu depuis module activ.

This commit is contained in:
Laurent Destailleur
2008-01-14 20:54:15 +00:00
parent 1778b88f35
commit 155a4e89b5
14 changed files with 152 additions and 81 deletions

View File

@@ -97,15 +97,16 @@ class modMyModule extends DolibarrModules
// Permissions
$this->rights = array(); // Permission array used by this module
$r=0;
// Add here list of permission defined by an id, a label, a boolean and two constant strings.
// Example:
// $r++;
// $this->rights[$r][0] = 2000; // Permission id (must not be already used)
// $this->rights[$r][1] = 'Permision label'; // Permission label
// $this->rights[$r][3] = 1; // Permission by default for new user (0/1)
// $this->rights[$r][4] = 'level1'; // In php code, permission will be checked by test if ($user->rights->permkey->level1->level2)
// $this->rights[$r][5] = 'level2'; // In php code, permission will be checked by test if ($user->rights->permkey->level1->level2)
// $r++;
// Main menu entries
$this->menus = array(); // List of menus to add