如何删除listview SugarCrm 7中的创建按钮

如何删除listview SugarCrm 7中的创建按钮,sugarcrm,Sugarcrm,如何删除SugarCRM 7中ListView中的创建按钮 您可以为它编写一个API:INcustom/clients/base/API但这将从该模块的每个位置隐藏create按钮 <?php /** * @author Harshal */ /* * Your installation or use of this SugarCRM file is subject to the applicable * terms available at * http://support.s

如何删除SugarCRM 7中ListView中的创建按钮


您可以为它编写一个API:IN
custom/clients/base/API
但这将从该模块的每个位置隐藏create按钮

<?php
/**
 * @author Harshal
 */
/*
 * Your installation or use of this SugarCRM file is subject to the applicable
 * terms available at
 * http://support.sugarcrm.com/06_Customer_Center/10_Master_Subscription_Agreements/.
 * If you do not agree to all of the applicable terms or do not have the
 * authority to bind the entity as an authorized representative, then do not
 * install or use this SugarCRM file.
 *
 * Copyright (C) SugarCRM Inc. All rights reserved.
 */

if (!defined('sugarEntry') || !sugarEntry)
    die('Not A Valid Entry Point');
require_once("clients/base/api/CurrentUserApi.php");

class CustomCurrentUserApi extends CurrentUserApi {

    public function registerApiRest() {
        return parent::registerApiRest();
    }

    public function retrieveCurrentUser($api, $args) {
        $result = parent::retrieveCurrentUser($api, $args);

        $result['current_user']['acl']['MODULENAME']['create'] =

        return $result;
    }

}

添加到您的view.list.php中:

public function getModuleTitle($show_help = true)
{
    parent::getModuleTitle(false);
}

到目前为止你做了什么?发布代码示例等。