Hello,
We want to remove Merge, Doc Merge, and Doc Merge to PDF from the Mass Actions Menu. Can anyone provide a solution for this? We have tried the following solution, but it didn’t work:
<?php
$viewdefs['EDoc_Email_Documents']['base']['view']['recordlist']['selection']['actions'] = array(
// Keeping only the mass PDF merge button
array(
'name' => 'mass_update',
'type' => 'massupdate',
'label' => 'LBL_MASS_UPDATE',
'acl_action' => 'massupdate',
'type' => 'button',
),
array(
'name' => 'mass_pdf_merge_button',
'label' => 'LBL_MASS_PDF_MERGE_BUTTON',
'type' => 'button',
'primary' => true,
'events' => array(
'click' => 'list:masspdfmergebutton:fire'
),
'acl_action' => 'massupdate'
),
array(
'name' => 'mass_delete',
'type' => 'massdelete', // Define the type for the delete action
'label' => 'LBL_DELETE_BUTTON_LABEL', // Label for the delete button
'acl_action' => 'delete', // ACL action for delete permission
'type' => 'button',
),
// Removed actions
// array(
// 'name' => 'merge',
// 'type' => 'merge',
// 'label' => 'LBL_MERGE',
// 'acl_action' => 'merge',
// ),
// array(
// 'name' => 'doc_merge',
// 'type' => 'doc_merge',
// 'label' => 'LBL_DOC_MERGE',
// 'acl_action' => 'doc_merge',
// ),
// array(
// 'name' => 'doc_merge_to_pdf',
// 'type' => 'doc_merge_to_pdf',
// 'label' => 'LBL_DOC_MERGE_TO_PDF',
// 'acl_action' => 'doc_merge_to_pdf',
// ),
);