From 756062a477e04f6eb63d9b9580d9a59190453c5c Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sun, 24 Apr 2005 17:13:44 +0000 Subject: [PATCH] disable_cells: new param $disable=true to also (re-)enable a cell --- etemplate/inc/class.boetemplate.inc.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/etemplate/inc/class.boetemplate.inc.php b/etemplate/inc/class.boetemplate.inc.php index c58b61fce2..003480e2b5 100644 --- a/etemplate/inc/class.boetemplate.inc.php +++ b/etemplate/inc/class.boetemplate.inc.php @@ -373,11 +373,12 @@ * disables all cells with name == $name * * @param sting $name cell-name + * @param boolean $disabled=true disable or enable a cell, default true=disable * @return mixed number of changed cells or False, if none changed */ - function disable_cells($name) + function disable_cells($name,$disabled=True) { - return $this->set_cell_attribute($name,'disabled',True); + return $this->set_cell_attribute($name,'disabled',$disabled); } /**