vtenext/modules/Processes/ListViewCustomisations.php
2021-04-28 20:10:26 +02:00

17 lines
567 B
PHP

<?php
/*************************************
* SPDX-FileCopyrightText: 2009-2020 Vtenext S.r.l. <info@vtenext.com>
* SPDX-License-Identifier: AGPL-3.0-only
************************************/
// crmv@105933 crmv@181170
// remove some tools for the module
if ($smarty && is_array($smarty->getTemplateVars('CHECK'))) {
$tool_buttons = $smarty->getTemplateVars('CHECK');
unset($tool_buttons['EditView']);
unset($tool_buttons['Import']);
unset($tool_buttons['Merge']);
unset($tool_buttons['DuplicatesHandling']);
$smarty->assign('CHECK', $tool_buttons);
}