add blockedlog picto in left menu
This commit is contained in:
parent
3c8ddf917f
commit
e1a22b7209
@ -124,18 +124,20 @@ class modBlockedLog extends DolibarrModules
|
|||||||
// -----------------
|
// -----------------
|
||||||
$r = 0;
|
$r = 0;
|
||||||
$this->menu[$r] = array(
|
$this->menu[$r] = array(
|
||||||
'fk_menu'=>'fk_mainmenu=tools', // Use 'fk_mainmenu=xxx' or 'fk_mainmenu=xxx,fk_leftmenu=yyy' where xxx is mainmenucode and yyy is a leftmenucode
|
'fk_menu'=>'fk_mainmenu=tools', // Use 'fk_mainmenu=xxx' or 'fk_mainmenu=xxx,fk_leftmenu=yyy' where xxx is mainmenucode and yyy is a leftmenucode
|
||||||
'mainmenu'=>'tools',
|
'mainmenu'=>'tools',
|
||||||
'leftmenu'=>'blockedlogbrowser',
|
'leftmenu'=>'blockedlogbrowser',
|
||||||
'type'=>'left', // This is a Left menu entry
|
'type'=>'left', // This is a Left menu entry
|
||||||
'titre'=>'BrowseBlockedLog',
|
'titre'=>'BrowseBlockedLog',
|
||||||
'url'=>'/blockedlog/admin/blockedlog_list.php?mainmenu=tools&leftmenu=blockedlogbrowser',
|
'prefix' => img_picto('', $this->picto, 'class="paddingright pictofixedwidth"'),
|
||||||
'langs'=>'blockedlog', // Lang file to use (without .lang) by module. File must be in langs/code_CODE/ directory.
|
'url'=>'/blockedlog/admin/blockedlog_list.php?mainmenu=tools&leftmenu=blockedlogbrowser',
|
||||||
'position'=>200,
|
'langs'=>'blockedlog', // Lang file to use (without .lang) by module. File must be in langs/code_CODE/ directory.
|
||||||
'enabled'=>'$conf->blockedlog->enabled', // Define condition to show or hide menu entry. Use '$conf->mymodule->enabled' if entry must be visible if module is enabled. Use '$leftmenu==\'system\'' to show if leftmenu system is selected.
|
'position'=>200,
|
||||||
'perms'=>'$user->rights->blockedlog->read', // Use 'perms'=>'$user->rights->mymodule->level1->level2' if you want your menu with a permission rules
|
'enabled'=>'$conf->blockedlog->enabled', // Define condition to show or hide menu entry. Use '$conf->mymodule->enabled' if entry must be visible if module is enabled. Use '$leftmenu==\'system\'' to show if leftmenu system is selected.
|
||||||
'target'=>'',
|
'perms'=>'$user->rights->blockedlog->read', // Use 'perms'=>'$user->rights->mymodule->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++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user