Created
April 9, 2016 07:34
-
-
Save AjayKumar01/1471f8f8ba0ce32b87c047809e3eb898 to your computer and use it in GitHub Desktop.
Removing import menu option from Accounts module menu.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* Removing import menu option from Accounts module menu. | |
* Ajay Kumar | |
* Path : /custom/modules/Accounts/clients/base/menus/header/header.php. | |
*/ | |
$moduleName = 'Accounts'; | |
$viewdefs[$moduleName]['base']['menu']['header'] = array( | |
array( | |
'label' =>'LNK_NEW_ACCOUNT', | |
'acl_action'=>'create', | |
'acl_module'=>$moduleName, | |
'icon' => 'fa-plus', | |
'route'=>'#'.$moduleName.'/create', | |
), | |
array( | |
'label' => 'LBL_BAL', | |
'acl_action' => 'create', | |
'acl_module' => $moduleName, | |
'icon' => 'fa-plus', | |
'route' => '#'.$moduleName.'/layout/dnb-bal', | |
), | |
array( | |
'route'=>'#'.$moduleName, | |
'label' =>'LNK_ACCOUNT_LIST', | |
'acl_action'=>'list', | |
'acl_module'=>$moduleName, | |
'icon' => 'fa-bars', | |
), | |
array( | |
'route' => '#bwc/index.php?' . http_build_query( | |
array( | |
'module' => 'Reports', | |
'action' => 'index', | |
'view' => $moduleName, | |
'query' => 'true', | |
'report_module' => $moduleName, | |
) | |
), | |
'label' =>'LNK_ACCOUNT_REPORTS', | |
'acl_action'=>'list', | |
'acl_module'=>$moduleName, | |
'icon' => 'fa-bar-chart-o', | |
), | |
/* | |
array( | |
'route' => '#bwc/index.php?' . http_build_query( | |
array( | |
'module' => 'Import', | |
'action' => 'Step1', | |
'import_module' => $moduleName, | |
) | |
), | |
'label' =>'LNK_IMPORT_ACCOUNTS', | |
'acl_action'=>'import', | |
'acl_module'=>$moduleName, | |
'icon' => 'fa-arrow-circle-o-up', | |
), | |
*/ | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment