sample use for margin module
This commit is contained in:
parent
b2ea91e0cc
commit
b487644cb7
@ -104,18 +104,20 @@ class modMargin extends DolibarrModules
|
|||||||
|
|
||||||
// left menu entry
|
// left menu entry
|
||||||
$this->menu[$r] = array(
|
$this->menu[$r] = array(
|
||||||
'fk_menu'=>'fk_mainmenu=billing', // Put 0 if this is a top menu
|
'fk_menu'=>'fk_mainmenu=billing', // Put 0 if this is a top menu
|
||||||
'type'=>'left', // This is a Top menu entry
|
'type'=>'left', // This is a Top menu entry
|
||||||
'titre'=>'Margins',
|
'titre'=>'Margins',
|
||||||
'mainmenu'=>'billing',
|
'prefix' => '<span class="fas fa-money-check-alt infobox-bank_account paddingright pictofixedwidth" style="font-size: 0.85em;"></span>',
|
||||||
'leftmenu'=>'margins',
|
'mainmenu'=>'billing',
|
||||||
'url'=>'/margin/index.php',
|
'leftmenu'=>'margins',
|
||||||
'langs'=>'margins', // Lang file to use (without .lang) by module. File must be in langs/code_CODE/ directory.
|
'url'=>'/margin/index.php',
|
||||||
'position'=>100,
|
'langs'=>'margins', // Lang file to use (without .lang) by module. File must be in langs/code_CODE/ directory.
|
||||||
'enabled'=>'$conf->margin->enabled', // Define condition to show or hide menu entry. Use '$conf->monmodule->enabled' if entry must be visible if module is enabled.
|
'position'=>100,
|
||||||
'perms'=>'$user->rights->margins->liretous', // Use 'perms'=>'$user->rights->monmodule->level1->level2' if you want your menu with a permission rules
|
'enabled'=>'$conf->margin->enabled', // Define condition to show or hide menu entry. Use '$conf->monmodule->enabled' if entry must be visible if module is enabled.
|
||||||
'target'=>'',
|
'perms'=>'$user->rights->margins->liretous', // Use 'perms'=>'$user->rights->monmodule->level1->level2' if you want your menu with a permission rules
|
||||||
'user'=>2); // 0=Menu for internal users, 1=external users, 2=both
|
'target'=>'',
|
||||||
|
'user'=>2, // 0=Menu for internal users, 1=external users, 2=both
|
||||||
|
);
|
||||||
$r++;
|
$r++;
|
||||||
|
|
||||||
// Permissions
|
// Permissions
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user