Add process driven module menu links

<?php
global $mod_strings, $app_strings;

if (ACLController::checkAccess('Leads', 'edit', true)) {
    $module_menu[] = [
        'index.php?module=Leads&action=EditView',
        $mod_strings['LBL_CREATE_RFI_LEAD'],
        "Create",
        "Leads",
        null,
        '',
        ['process' => 'leads-create-rfi-lead']
    ];
}

is there anything wrong in code as when i do quick repair the modules’ ribbon disappeared

Maybe if you gave some background on what you are trying to do, the business process, what version of SuiteCRM, etc. people might be able to help you.

1 Like

Are you sure that $mod_strings[‘LBL_CREATE_RFI_LEAD’] exists?
My experience is that, with SuiteCRM 8, the top menu disappears when a menu label is not defined.
Maybe you should try with a hard-coded label?