listview override help
I am attempting to hide the delete button in listview for a particular module. I have a listview override file in a views folder with some code to handle shortcuts I added some lines to try and hide the delete button:
$lv = new ListViewSmarty();
$lv->delete = false;
This does not seem to help. Any thoughts? Thanks in advance.
<?php
require_once('include/MVC/View/views/view.list.php');
class cust1_HouseholdsViewList extends ViewList {
function cust1_HouseholdsViewList(){
parent::ViewList();
}
function displayHeader(){
$lv = new ListViewSmarty();
$lv->delete = false;
if (!empty($GLOBALS['mod_strings']['LNK_NEW_RECORD'])) {
$GLOBALS['module_menu'][] = Array("index.php?module=$this->module&action=index",
$GLOBALS['mod_strings']['LNK_LIST'], $this->module, $this->module);
$GLOBALS['module_menu'][]=Array("index.php?module=Reports&action=index&view =cust1_households",
$GLOBALS['mod_strings']['LNK_HOUSEHOLD_REPORTS'],AccountReports, $this->module);
}
$this->includeClassicFile('themes/' . $GLOBALS['theme'] . '/header.php');
$this->includeClassicFile('modules/Administration/DisplayWarnings.php');
}
}
Keith Heald
Market Advantage - Harte Hanks
Sugar Pro 6.2
Windows 2003
MS SQL2008
Bookmarks